Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
8cc5e510
Commit
8cc5e510
authored
Apr 06, 2017
by
nixonrodrigues
Committed by
Madhan Neethiraj
Apr 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1697: fix log4j configuration for import-hive.sh
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
2720af61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
1 deletion
+61
-1
import-hive.sh
addons/hive-bridge/src/bin/import-hive.sh
+1
-1
atlas-hive-import-log4j.xml
...ive-bridge/src/main/resources/atlas-hive-import-log4j.xml
+60
-0
No files found.
addons/hive-bridge/src/bin/import-hive.sh
View file @
8cc5e510
...
@@ -118,7 +118,7 @@ then
...
@@ -118,7 +118,7 @@ then
fi
fi
JAVA_PROPERTIES
=
"
$ATLAS_OPTS
-Datlas.log.dir=
$ATLAS_LOG_DIR
-Datlas.log.file=import-hive.log
JAVA_PROPERTIES
=
"
$ATLAS_OPTS
-Datlas.log.dir=
$ATLAS_LOG_DIR
-Datlas.log.file=import-hive.log
-Dlog4j.configuration=atlas-log4j.xml"
-Dlog4j.configuration=atlas-
hive-import-
log4j.xml"
shift
shift
while
[[
${
1
}
=
~ ^
\-
D
]]
;
do
while
[[
${
1
}
=
~ ^
\-
D
]]
;
do
...
...
addons/hive-bridge/src/main/resources/atlas-hive-import-log4j.xml
0 → 100644
View file @
8cc5e510
<?xml version="1.0" encoding="UTF-8" ?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration
xmlns:log4j=
"http://jakarta.apache.org/log4j/"
>
<appender
name=
"console"
class=
"org.apache.log4j.ConsoleAppender"
>
<param
name=
"Target"
value=
"System.out"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %-5p - [%t:%x] ~ %m (%C{1}:%L)%n"
/>
</layout>
</appender>
<appender
name=
"FILE"
class=
"org.apache.log4j.DailyRollingFileAppender"
>
<param
name=
"File"
value=
"${atlas.log.dir}/${atlas.log.file}"
/>
<param
name=
"Append"
value=
"true"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %-5p - [%t:%x] ~ %m (%C{1}:%L)%n"
/>
</layout>
</appender>
<logger
name=
"org.apache.atlas"
additivity=
"false"
>
<level
value=
"info"
/>
<appender-ref
ref=
"FILE"
/>
</logger>
<logger
name=
"com.thinkaurelius.titan"
additivity=
"false"
>
<level
value=
"info"
/>
<appender-ref
ref=
"FILE"
/>
</logger>
<!-- to avoid logs - The configuration log.flush.interval.messages = 1 was supplied but isn't a known config -->
<logger
name=
"org.apache.kafka.common.config.AbstractConfig"
additivity=
"false"
>
<level
value=
"error"
/>
<appender-ref
ref=
"FILE"
/>
</logger>
<root>
<priority
value=
"warn"
/>
<appender-ref
ref=
"FILE"
/>
</root>
</log4j:configuration>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment