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
18a4984a
Commit
18a4984a
authored
Nov 29, 2018
by
Umesh S Padashetty
Committed by
rmani
Nov 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2983: Fixes and clean up for Atlas Kafka bridge utility
Signed-off-by:
rmani
<
rmani@hortonworks.com
>
parent
5ebb1690
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
KafkaBridge.java
.../main/java/org/apache/atlas/kafka/bridge/KafkaBridge.java
+6
-5
AdminResource.java
...in/java/org/apache/atlas/web/resources/AdminResource.java
+1
-1
No files found.
addons/kafka-bridge/src/main/java/org/apache/atlas/kafka/bridge/KafkaBridge.java
View file @
18a4984a
...
@@ -53,6 +53,7 @@ import java.util.Collection;
...
@@ -53,6 +53,7 @@ import java.util.Collection;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.regex.Pattern
;
public
class
KafkaBridge
{
public
class
KafkaBridge
{
private
static
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
KafkaBridge
.
class
);
private
static
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
KafkaBridge
.
class
);
...
@@ -170,7 +171,7 @@ public class KafkaBridge {
...
@@ -170,7 +171,7 @@ public class KafkaBridge {
if
(
StringUtils
.
isNotEmpty
(
topicToImport
))
{
if
(
StringUtils
.
isNotEmpty
(
topicToImport
))
{
List
<
String
>
topics_subset
=
new
ArrayList
<>();
List
<
String
>
topics_subset
=
new
ArrayList
<>();
for
(
String
topic
:
topics
)
{
for
(
String
topic
:
topics
)
{
if
(
topic
.
startsWith
(
topicToImport
))
{
if
(
Pattern
.
compile
(
topicToImport
).
matcher
(
topic
).
matches
(
))
{
topics_subset
.
add
(
topic
);
topics_subset
.
add
(
topic
);
}
}
}
}
...
@@ -305,12 +306,12 @@ public class KafkaBridge {
...
@@ -305,12 +306,12 @@ public class KafkaBridge {
private
static
void
printUsage
(){
private
static
void
printUsage
(){
System
.
out
.
println
(
"Usage 1: import-kafka.sh"
);
System
.
out
.
println
(
"Usage 1: import-kafka.sh"
);
System
.
out
.
println
(
"Usage 2: import-kafka.sh [-
n <topic regex> OR --topic <topic regex
>]"
);
System
.
out
.
println
(
"Usage 2: import-kafka.sh [-
t <topic regex> OR --topic <topic regex
>]"
);
System
.
out
.
println
(
"Usage 3: import-kafka.sh [-f <filename>]"
);
System
.
out
.
println
(
"Usage 3: import-kafka.sh [-f <filename>]"
);
System
.
out
.
println
(
" Format:"
);
System
.
out
.
println
(
" Format:"
);
System
.
out
.
println
(
" topic1"
);
System
.
out
.
println
(
" topic1
OR topic1 regex
"
);
System
.
out
.
println
(
" topic2"
);
System
.
out
.
println
(
" topic2
OR topic2 regex
"
);
System
.
out
.
println
(
" topic3"
);
System
.
out
.
println
(
" topic3
OR topic3 regex
"
);
}
}
...
...
webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java
View file @
18a4984a
...
@@ -114,7 +114,7 @@ public class AdminResource {
...
@@ -114,7 +114,7 @@ public class AdminResource {
private
static
final
String
isEntityUpdateAllowed
=
"atlas.entity.update.allowed"
;
private
static
final
String
isEntityUpdateAllowed
=
"atlas.entity.update.allowed"
;
private
static
final
String
isEntityCreateAllowed
=
"atlas.entity.create.allowed"
;
private
static
final
String
isEntityCreateAllowed
=
"atlas.entity.create.allowed"
;
private
static
final
String
editableEntityTypes
=
"atlas.ui.editable.entity.types"
;
private
static
final
String
editableEntityTypes
=
"atlas.ui.editable.entity.types"
;
private
static
final
String
DEFAULT_EDITABLE_ENTITY_TYPES
=
"hdfs_path
,hbase_table,hbase_column,hbase_column_family,kafka_topic,hbase_namespace
"
;
private
static
final
String
DEFAULT_EDITABLE_ENTITY_TYPES
=
"hdfs_path"
;
private
static
final
List
TIMEZONE_LIST
=
Arrays
.
asList
(
TimeZone
.
getAvailableIDs
());
private
static
final
List
TIMEZONE_LIST
=
Arrays
.
asList
(
TimeZone
.
getAvailableIDs
());
@Context
@Context
...
...
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