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
39ff496f
Commit
39ff496f
authored
Oct 09, 2020
by
Ashutosh Mestry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3989: Updated Export-Import Audits Writer to use metadata.namespace.
parent
f5db98b3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
AtlasConstants.java
common/src/main/java/org/apache/atlas/AtlasConstants.java
+1
-0
AuditsWriter.java
...java/org/apache/atlas/repository/impexp/AuditsWriter.java
+6
-2
No files found.
common/src/main/java/org/apache/atlas/AtlasConstants.java
View file @
39ff496f
...
@@ -26,6 +26,7 @@ public final class AtlasConstants {
...
@@ -26,6 +26,7 @@ public final class AtlasConstants {
}
}
public
static
final
String
CLUSTER_NAME_KEY
=
"atlas.cluster.name"
;
public
static
final
String
CLUSTER_NAME_KEY
=
"atlas.cluster.name"
;
public
static
final
String
METADATA_NAMESPACE_KEY
=
"atlas.metadata.namespace"
;
public
static
final
String
DEFAULT_CLUSTER_NAME
=
"primary"
;
public
static
final
String
DEFAULT_CLUSTER_NAME
=
"primary"
;
public
static
final
String
SYSTEM_PROPERTY_APP_PORT
=
"atlas.app.port"
;
public
static
final
String
SYSTEM_PROPERTY_APP_PORT
=
"atlas.app.port"
;
public
static
final
String
ATLAS_REST_ADDRESS_KEY
=
"atlas.rest.address"
;
public
static
final
String
ATLAS_REST_ADDRESS_KEY
=
"atlas.rest.address"
;
...
...
repository/src/main/java/org/apache/atlas/repository/impexp/AuditsWriter.java
View file @
39ff496f
...
@@ -120,13 +120,17 @@ public class AuditsWriter {
...
@@ -120,13 +120,17 @@ public class AuditsWriter {
}
}
public
static
String
getCurrentClusterName
()
{
public
static
String
getCurrentClusterName
()
{
String
ret
=
StringUtils
.
EMPTY
;
try
{
try
{
return
ApplicationProperties
.
get
().
getString
(
AtlasConstants
.
CLUSTER_NAME_KEY
,
CLUSTER_NAME_DEFAULT
);
ret
=
ApplicationProperties
.
get
().
getString
(
AtlasConstants
.
METADATA_NAMESPACE_KEY
,
StringUtils
.
EMPTY
);
if
(
StringUtils
.
isEmpty
(
ret
))
{
ret
=
ApplicationProperties
.
get
().
getString
(
AtlasConstants
.
CLUSTER_NAME_KEY
,
CLUSTER_NAME_DEFAULT
);
}
}
catch
(
AtlasException
e
)
{
}
catch
(
AtlasException
e
)
{
LOG
.
error
(
"getCurrentClusterName"
,
e
);
LOG
.
error
(
"getCurrentClusterName"
,
e
);
}
}
return
StringUtils
.
EMPTY
;
return
ret
;
}
}
static
String
getServerNameFromFullName
(
String
fullName
)
{
static
String
getServerNameFromFullName
(
String
fullName
)
{
...
...
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