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
243a4321
Commit
243a4321
authored
Nov 06, 2018
by
Sarath Subramanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2957: Fix and enable disabled StormHook Integrations Tests
parent
e7b9131d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
StormAtlasHookIT.java
...st/java/org/apache/atlas/storm/hook/StormAtlasHookIT.java
+2
-3
FailedMessagesLogger.java
...main/java/org/apache/atlas/hook/FailedMessagesLogger.java
+8
-6
pom.xml
pom.xml
+4
-0
No files found.
addons/storm-bridge/src/test/java/org/apache/atlas/storm/hook/StormAtlasHookIT.java
View file @
243a4321
...
...
@@ -36,7 +36,7 @@ import org.testng.annotations.AfterClass;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
@Test
(
enabled
=
false
)
@Test
public
class
StormAtlasHookIT
{
public
static
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
StormAtlasHookIT
.
class
);
...
...
@@ -70,8 +70,7 @@ public class StormAtlasHookIT {
atlasClient
=
null
;
}
//TODO: Fix failing test
@Test
(
enabled
=
false
)
@Test
public
void
testAddEntities
()
throws
Exception
{
StormTopology
stormTopology
=
StormTestUtil
.
createTestTopology
();
StormTestUtil
.
submitTopology
(
stormCluster
,
TOPOLOGY_NAME
,
stormTopology
);
...
...
notification/src/main/java/org/apache/atlas/hook/FailedMessagesLogger.java
View file @
243a4321
...
...
@@ -73,17 +73,19 @@ public class FailedMessagesLogger {
* @return directory under which host component's logs are stored.
*/
private
String
getRootLoggerDirectory
()
{
String
rootLoggerDirectory
=
null
;
org
.
apache
.
log4j
.
Logger
rootLogger
=
org
.
apache
.
log4j
.
Logger
.
getRootLogger
();
String
rootLoggerDirectory
=
null
;
Logger
rootLogger
=
Logger
.
getRootLogger
();
Enumeration
allAppenders
=
rootLogger
.
getAllAppenders
();
Enumeration
allAppenders
=
rootLogger
.
getAllAppenders
();
if
(
allAppenders
!=
null
)
{
while
(
allAppenders
.
hasMoreElements
())
{
Appender
appender
=
(
Appender
)
allAppenders
.
nextElement
();
if
(
appender
instanceof
FileAppender
)
{
FileAppender
fileAppender
=
(
FileAppender
)
appender
;
String
rootLoggerFile
=
fileAppender
.
getFile
();
rootLoggerDirectory
=
new
File
(
rootLoggerFile
).
getParent
();
FileAppender
fileAppender
=
(
FileAppender
)
appender
;
String
rootLoggerFile
=
fileAppender
.
getFile
();
rootLoggerDirectory
=
rootLoggerFile
!=
null
?
new
File
(
rootLoggerFile
).
getParent
()
:
null
;
break
;
}
}
...
...
pom.xml
View file @
243a4321
...
...
@@ -1902,6 +1902,8 @@
<systemProperties>
<user.dir>
${project.basedir}
</user.dir>
<atlas.data>
${project.build.directory}/data
</atlas.data>
<atlas.log.dir>
${project.build.directory}/logs
</atlas.log.dir>
<atlas.log.file>
application.log
</atlas.log.file>
<log4j.configuration>
atlas-log4j.xml
</log4j.configuration>
<embedded.solr.directory>
${project.basedir}/target
</embedded.solr.directory>
</systemProperties>
...
...
@@ -1932,6 +1934,8 @@
<systemPropertyVariables>
<projectBaseDir>
${projectBaseDir}
</projectBaseDir>
<atlas.data>
${project.build.directory}/data
</atlas.data>
<atlas.log.dir>
${project.build.directory}/logs
</atlas.log.dir>
<atlas.log.file>
application.log
</atlas.log.file>
<log4j.configuration>
atlas-log4j.xml
</log4j.configuration>
<embedded.solr.directory>
${project.basedir}/target
</embedded.solr.directory>
</systemPropertyVariables>
...
...
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