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
2c65ac46
Commit
2c65ac46
authored
May 07, 2015
by
Shwetha GS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed - boolean backed index is not supported
parent
01ee72a3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
Bridge-Hive.twiki
addons/hive-bridge/src/site/twiki/Bridge-Hive.twiki
+1
-1
GraphBackedDiscoveryService.java
...metadata/discovery/graph/GraphBackedDiscoveryService.java
+1
-1
GraphBackedSearchIndexer.java
...p/metadata/repository/graph/GraphBackedSearchIndexer.java
+10
-3
EntityJerseyResourceIT.java
...hadoop/metadata/web/resources/EntityJerseyResourceIT.java
+4
-1
No files found.
addons/hive-bridge/src/site/twiki/Bridge-Hive.twiki
View file @
2c65ac46
...
@@ -31,7 +31,7 @@ hive conf directory:
...
@@ -31,7 +31,7 @@ hive conf directory:
</property>
</property>
</verbatim>
</verbatim>
Usage: <dgi package>/bin/import-hive.sh
Usage: <dgi package>/bin/import-hive.sh
. The logs are in <dgi package>/logs/import-hive.log
---++ Hive Hook
---++ Hive Hook
...
...
repository/src/main/java/org/apache/hadoop/metadata/discovery/graph/GraphBackedDiscoveryService.java
View file @
2c65ac46
...
@@ -73,7 +73,7 @@ public class GraphBackedDiscoveryService implements DiscoveryService {
...
@@ -73,7 +73,7 @@ public class GraphBackedDiscoveryService implements DiscoveryService {
this
.
graphPersistenceStrategy
=
new
DefaultGraphPersistenceStrategy
(
metadataRepository
);
this
.
graphPersistenceStrategy
=
new
DefaultGraphPersistenceStrategy
(
metadataRepository
);
}
}
//Refer http://s3.thinkaurelius.com/docs/titan/0.5.
0
/index-backends.html for indexed query
//Refer http://s3.thinkaurelius.com/docs/titan/0.5.
4
/index-backends.html for indexed query
//http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query
//http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query
// .html#query-string-syntax for query syntax
// .html#query-string-syntax for query syntax
@Override
@Override
...
...
repository/src/main/java/org/apache/hadoop/metadata/repository/graph/GraphBackedSearchIndexer.java
View file @
2c65ac46
...
@@ -314,9 +314,16 @@ public class GraphBackedSearchIndexer implements SearchIndexer {
...
@@ -314,9 +314,16 @@ public class GraphBackedSearchIndexer implements SearchIndexer {
.
dataType
(
propertyClass
)
.
dataType
(
propertyClass
)
.
make
();
.
make
();
TitanGraphIndex
vertexIndex
=
management
.
getGraphIndex
(
Constants
.
VERTEX_INDEX
);
if
(
propertyClass
==
Boolean
.
class
)
{
management
.
addIndexKey
(
vertexIndex
,
propertyKey
);
//Use standard index as backing index only supports string, int and geo types
management
.
commit
();
management
.
buildIndex
(
propertyName
,
Vertex
.
class
).
addKey
(
propertyKey
).
buildCompositeIndex
();
management
.
commit
();
}
else
{
//Use backing index
TitanGraphIndex
vertexIndex
=
management
.
getGraphIndex
(
Constants
.
VERTEX_INDEX
);
management
.
addIndexKey
(
vertexIndex
,
propertyKey
);
management
.
commit
();
}
LOG
.
info
(
"Created mixed vertex index for property {}"
,
propertyName
);
LOG
.
info
(
"Created mixed vertex index for property {}"
,
propertyName
);
}
}
...
...
webapp/src/test/java/org/apache/hadoop/metadata/web/resources/EntityJerseyResourceIT.java
View file @
2c65ac46
...
@@ -410,7 +410,9 @@ public class EntityJerseyResourceIT extends BaseResourceIT {
...
@@ -410,7 +410,9 @@ public class EntityJerseyResourceIT extends BaseResourceIT {
new
AttributeDefinition
(
"serde2"
,
new
AttributeDefinition
(
"serde2"
,
"serdeType"
,
Multiplicity
.
REQUIRED
,
false
,
null
),
"serdeType"
,
Multiplicity
.
REQUIRED
,
false
,
null
),
new
AttributeDefinition
(
"database"
,
new
AttributeDefinition
(
"database"
,
DATABASE_TYPE
,
Multiplicity
.
REQUIRED
,
true
,
null
));
DATABASE_TYPE
,
Multiplicity
.
REQUIRED
,
true
,
null
),
new
AttributeDefinition
(
"compressed"
,
DataTypes
.
BOOLEAN_TYPE
.
getName
(),
Multiplicity
.
OPTIONAL
,
true
,
null
));
HierarchicalTypeDefinition
<
TraitType
>
classificationTraitDefinition
=
HierarchicalTypeDefinition
<
TraitType
>
classificationTraitDefinition
=
TypesUtil
.
createTraitTypeDef
(
"classification"
,
TypesUtil
.
createTraitTypeDef
(
"classification"
,
...
@@ -451,6 +453,7 @@ public class EntityJerseyResourceIT extends BaseResourceIT {
...
@@ -451,6 +453,7 @@ public class EntityJerseyResourceIT extends BaseResourceIT {
tableInstance
.
set
(
"level"
,
2
);
tableInstance
.
set
(
"level"
,
2
);
tableInstance
.
set
(
"tableType"
,
1
);
// enum
tableInstance
.
set
(
"tableType"
,
1
);
// enum
tableInstance
.
set
(
"database"
,
databaseInstance
);
tableInstance
.
set
(
"database"
,
databaseInstance
);
tableInstance
.
set
(
"compressed"
,
false
);
Struct
traitInstance
=
(
Struct
)
tableInstance
.
getTrait
(
"classification"
);
Struct
traitInstance
=
(
Struct
)
tableInstance
.
getTrait
(
"classification"
);
traitInstance
.
set
(
"tag"
,
"foundation_etl"
);
traitInstance
.
set
(
"tag"
,
"foundation_etl"
);
...
...
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