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
fccfe919
Commit
fccfe919
authored
6 years ago
by
rmani
Committed by
Madhan Neethiraj
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2680: import-hbase fails to match namespaces for the given regex
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
3b75d56d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
HBaseBridge.java
.../main/java/org/apache/atlas/hbase/bridge/HBaseBridge.java
+5
-2
No files found.
addons/hbase-bridge/src/main/java/org/apache/atlas/hbase/bridge/HBaseBridge.java
View file @
fccfe919
...
...
@@ -56,6 +56,7 @@ import java.util.Collection;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
public
class
HBaseBridge
{
...
...
@@ -324,11 +325,13 @@ public class HBaseBridge {
private
List
<
NamespaceDescriptor
>
getMatchingNameSpaces
(
String
nameSpace
)
throws
Exception
{
List
<
NamespaceDescriptor
>
ret
=
new
ArrayList
<>();
NamespaceDescriptor
[]
namespaceDescriptors
=
hbaseAdmin
.
listNamespaceDescriptors
();
Pattern
pattern
=
Pattern
.
compile
(
nameSpace
);
for
(
NamespaceDescriptor
namespaceDescriptor:
namespaceDescriptors
){
String
nmSpace
=
namespaceDescriptor
.
getName
();
String
nmSpace
=
namespaceDescriptor
.
getName
();
Matcher
matcher
=
pattern
.
matcher
(
nmSpace
);
if
(
nmSpace
.
matches
(
nameSpace
)){
if
(
matcher
.
find
(
)){
ret
.
add
(
namespaceDescriptor
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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