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
aa15cd0a
Commit
aa15cd0a
authored
Oct 24, 2016
by
Suma Shivaprasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1139 Parameter name of a HDFS DataSet entity should contain filesystem…
ATLAS-1139 Parameter name of a HDFS DataSet entity should contain filesystem path (svimal2106 via sumasai)
parent
fdf97ae4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
7 deletions
+11
-7
FalconBridge.java
...ain/java/org/apache/atlas/falcon/bridge/FalconBridge.java
+3
-1
HiveMetaStoreBridge.java
...ava/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
+1
-1
HiveITBase.java
...ridge/src/test/java/org/apache/atlas/hive/HiveITBase.java
+3
-2
SqoopHookIT.java
...rc/test/java/org/apache/atlas/sqoop/hook/SqoopHookIT.java
+2
-2
StormAtlasHook.java
...main/java/org/apache/atlas/storm/hook/StormAtlasHook.java
+1
-1
release-log.txt
release-log.txt
+1
-0
No files found.
addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/bridge/FalconBridge.java
View file @
aa15cd0a
...
...
@@ -46,6 +46,7 @@ import org.apache.falcon.entity.v0.process.Input;
import
org.apache.falcon.entity.v0.process.Output
;
import
org.apache.falcon.entity.v0.process.Workflow
;
import
org.apache.falcon.workflow.WorkflowExecutionArgs
;
import
org.apache.hadoop.fs.Path
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -323,7 +324,8 @@ public class FalconBridge {
// Path path = new Path(pathUri);
// ref.set("name", path.getName());
//TODO - Fix after ATLAS-542 to shorter Name
ref
.
set
(
AtlasClient
.
NAME
,
pathUri
);
Path
path
=
new
Path
(
pathUri
);
ref
.
set
(
AtlasClient
.
NAME
,
Path
.
getPathWithoutSchemeAndAuthority
(
path
).
toString
().
toLowerCase
());
ref
.
set
(
AtlasClient
.
REFERENCEABLE_ATTRIBUTE_NAME
,
pathUri
);
ref
.
set
(
AtlasConstants
.
CLUSTER_NAME_ATTRIBUTE
,
clusterName
);
entities
.
add
(
ref
);
...
...
addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
View file @
aa15cd0a
...
...
@@ -563,7 +563,7 @@ public class HiveMetaStoreBridge {
Referenceable
ref
=
new
Referenceable
(
FSDataTypes
.
HDFS_PATH
().
toString
());
ref
.
set
(
"path"
,
pathUri
);
Path
path
=
new
Path
(
pathUri
);
ref
.
set
(
AtlasClient
.
NAME
,
path
.
getNam
e
());
ref
.
set
(
AtlasClient
.
NAME
,
Path
.
getPathWithoutSchemeAndAuthority
(
path
).
toString
().
toLowerCas
e
());
ref
.
set
(
AtlasClient
.
REFERENCEABLE_ATTRIBUTE_NAME
,
pathUri
);
return
ref
;
}
...
...
addons/hive-bridge/src/test/java/org/apache/atlas/hive/HiveITBase.java
View file @
aa15cd0a
...
...
@@ -218,13 +218,14 @@ public class HiveITBase {
List
<
Id
>
hdfsPathRefs
=
(
List
<
Id
>)
processReference
.
get
(
attributeName
);
for
(
int
i
=
0
;
i
<
testPaths
.
length
;
i
++)
{
final
String
testPathNormed
=
lower
(
new
Path
(
testPaths
[
i
]).
toString
());
final
Path
path
=
new
Path
(
testPaths
[
i
]);
final
String
testPathNormed
=
lower
(
path
.
toString
());
String
hdfsPathId
=
assertHDFSPathIsRegistered
(
testPathNormed
);
Assert
.
assertEquals
(
hdfsPathRefs
.
get
(
0
).
_getId
(),
hdfsPathId
);
Referenceable
hdfsPathRef
=
atlasClient
.
getEntity
(
hdfsPathId
);
Assert
.
assertEquals
(
hdfsPathRef
.
get
(
"path"
),
testPathNormed
);
Assert
.
assertEquals
(
hdfsPathRef
.
get
(
NAME
),
new
Path
(
testPathNormed
).
getNam
e
());
Assert
.
assertEquals
(
hdfsPathRef
.
get
(
NAME
),
Path
.
getPathWithoutSchemeAndAuthority
(
path
).
toString
().
toLowerCas
e
());
Assert
.
assertEquals
(
hdfsPathRef
.
get
(
AtlasClient
.
REFERENCEABLE_ATTRIBUTE_NAME
),
testPathNormed
);
}
}
...
...
addons/sqoop-bridge/src/test/java/org/apache/atlas/sqoop/hook/SqoopHookIT.java
View file @
aa15cd0a
...
...
@@ -119,8 +119,8 @@ public class SqoopHookIT {
private
String
assertHiveTableIsRegistered
(
String
dbName
,
String
tableName
)
throws
Exception
{
LOG
.
debug
(
"Searching for table {}.{}"
,
dbName
,
tableName
);
String
query
=
String
.
format
(
"%s as t where "
+
AtlasClient
.
NAME
+
" = '%s', db where "
+
AtlasClient
.
NAME
+
" = '%s' and clusterName = '%s'"
+
" select t"
,
HiveDataTypes
.
HIVE_TABLE
.
getName
(),
tableName
.
toLowerCase
(
),
dbName
.
toLowerCase
(),
CLUSTER_NAME
);
"%s as t where "
+
AtlasClient
.
REFERENCEABLE_ATTRIBUTE_
NAME
+
" = '%s', db where "
+
AtlasClient
.
NAME
+
" = '%s' and clusterName = '%s'"
+
" select t"
,
HiveDataTypes
.
HIVE_TABLE
.
getName
(),
HiveMetaStoreBridge
.
getTableQualifiedName
(
CLUSTER_NAME
,
dbName
,
tableName
),
dbName
.
toLowerCase
(),
CLUSTER_NAME
);
return
assertEntityIsRegistered
(
query
);
}
...
...
addons/storm-bridge/src/main/java/org/apache/atlas/storm/hook/StormAtlasHook.java
View file @
aa15cd0a
...
...
@@ -223,7 +223,7 @@ public class StormAtlasHook extends AtlasHook implements ISubmitterHook {
dataSetReferenceable
.
set
(
"path"
,
hdfsPathStr
);
dataSetReferenceable
.
set
(
AtlasClient
.
OWNER
,
stormConf
.
get
(
"hdfs.kerberos.principal"
));
final
Path
hdfsPath
=
new
Path
(
hdfsPathStr
);
dataSetReferenceable
.
set
(
AtlasClient
.
NAME
,
hdfsPath
.
getNam
e
());
dataSetReferenceable
.
set
(
AtlasClient
.
NAME
,
Path
.
getPathWithoutSchemeAndAuthority
(
hdfsPath
).
toString
().
toLowerCas
e
());
break
;
case
"HiveBolt"
:
...
...
release-log.txt
View file @
aa15cd0a
...
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
ATLAS-1139 Parameter name of a HDFS DataSet entity should contain filesystem path (svimal2106 via sumasai)
ATLAS-1200 Error Catalog enhancement (apoorvnaik via sumasai)
ATLAS-1207 Dataset exists query in lineage APIs takes longer (shwethags)
ATLAS-1232 added preCreate(), preDelete() in typedef persistence, to enable edge creation for references in a later stage (mneethiraj)
...
...
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