atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shwetha Shivalingamurthy <sshivalingamur...@hortonworks.com>
Subject Re: Search syntax
Date Thu, 24 Sep 2015 16:10:58 GMT
Which java version are you using?

Regards,
Shwetha






On 24/09/15 9:36 pm, "Herman Yu" <herman.yu@teeupdata.com> wrote:

>Thanks Suma and Shwetha.
>
>Followed instruction here:
>http://atlas.incubator.apache.org/InstallationSteps.html, I tried to
>built v0.6 version to test the search syntax.The built is failed. Error
>message attached.
>
>Is there a binary version of v0.6 for download?
>
>Is this mailing list the right place for this type of questions/help? Or
>should I create a Jira ?
>
>Thanks
>Herman.
>
>
>[INFO] --- scala-maven-plugin:3.2.0:compile (scala-compile-first) @
>atlas-typesystem ---
>[WARNING] Zinc server is not available at port 3030 - reverting to normal
>incremental compile
>[INFO] Using incremental compilation
>[INFO] Compiling 6 Scala sources and 45 Java sources to
>/teeup/source_repo/atlas/typesystem/target/classes...
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/Struct.java:33: illegal start of type
>[ERROR]         values = new HashMap<>();
>[ERROR]                              ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/persistence/DownCastStructInstance.java:62: illegal start of type
>[ERROR]         Map<String, Object> m = new HashMap<>();
>[ERROR]                                             ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/persistence/StructInstance.java:241: illegal start of type
>[ERROR]         Map<String, Object> m = new HashMap<>();
>[ERROR]                                             ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/HierarchicalType.java:153: illegal start of type
>[ERROR]         Map<String, String> attributeNameToType = new HashMap<>();
>[ERROR]                                                               ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/ObjectGraphWalker.java:58: illegal start of type
>[ERROR]         queue = new LinkedList<>();
>[ERROR]                                ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/ObjectGraphWalker.java:59: illegal start of type
>[ERROR]         processedIds = new HashSet<>();
>[ERROR]                                    ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:85: illegal start of type
>[ERROR]         types = new ConcurrentHashMap<>();
>[ERROR]                                       ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:98: illegal start of type
>[ERROR]         List<String> typeNames = new ArrayList<>(types.keySet());
>[ERROR]                                                ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:306: illegal start of type
>[ERROR]         Map<String, StructTypeDefinition> structNameToDefMap =
>new HashMap<>();
>[ERROR]           
>         ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:307: illegal start of type
>[ERROR]         Map<String, HierarchicalTypeDefinition<TraitType>>
>traitNameToDefMap = new HashMap<>();
>[ERROR]           
>                         ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:308: illegal start of type
>[ERROR]         Map<String, HierarchicalTypeDefinition<ClassType>>
>classNameToDefMap = new HashMap<>();
>[ERROR]           
>                         ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:324: illegal start of type
>[ERROR]             structNameToDefMap = new HashMap<>();
>[ERROR]                                              ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:325: illegal start of type
>[ERROR]             traitNameToDefMap = new HashMap<>();
>[ERROR]                                             ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:326: illegal start of type
>[ERROR]             classNameToDefMap = new HashMap<>();
>[ERROR]                                             ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:328: illegal start of type
>[ERROR]             recursiveRefs = new ArrayList<>();
>[ERROR]                                           ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:329: illegal start of type
>[ERROR]             recursiveArrayTypes = new ArrayList<>();
>[ERROR]                                                 ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:330: illegal start of type
>[ERROR]             recursiveMapTypes = new ArrayList<>();
>[ERROR]                                               ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:331: illegal start of type
>[ERROR]             transientTypes = new LinkedHashSet<>();
>[ERROR]                                                ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:394: illegal start of type
>[ERROR]             Set<String> s = new HashSet<>();
>[ERROR]                                         ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:505: illegal start of type
>[ERROR]             List<TraitType> traitTypes = new ArrayList<>();
>[ERROR]                                                        ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:511: illegal start of type
>[ERROR]             List<ClassType> classTypes = new ArrayList<>();
>[ERROR]                                                        ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/TypeSystem.java:564: illegal start of type
>[ERROR]             Map<String, IDataType> newTypes = new HashMap<>();
>[ERROR]                                                           ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/utils/TypesUtil.java:66: illegal start of type
>[ERROR]         return new HierarchicalTypeDefinition<>(TraitType.class,
>name, superTypes, attrDefs);
>[ERROR]                                               ^
>[ERROR] 
>/teeup/source_repo/atlas/typesystem/src/main/java/org/apache/atlas/typesys
>tem/types/utils/TypesUtil.java:75: illegal start of type
>[ERROR]         return new HierarchicalTypeDefinition<>(ClassType.class,
>name, superTypes, attrDefs);
>[ERROR]                                               ^
>[ERROR] 24 errors
>[INFO] 
>------------------------------------------------------------------------
>[INFO] Reactor Summary:
>[INFO] 
>[INFO] apache-atlas ....................................... SUCCESS
>[03:00 min]
>[INFO] Apache Atlas Typesystem ............................ FAILURE
>[03:48 min]
>[INFO] Apache Atlas Common ................................ SKIPPED
>[INFO] Apache Atlas Client ................................ SKIPPED
>[INFO] Apache Atlas Notification .......................... SKIPPED
>[INFO] Apache Atlas Repository ............................ SKIPPED
>[INFO] Apache Atlas Web Application ....................... SKIPPED
>[INFO] Apache Atlas Documentation ......................... SKIPPED
>[INFO] Apache Atlas Hive Bridge ........................... SKIPPED
>[INFO] Apache Atlas Distribution .......................... SKIPPED
>[INFO] 
>------------------------------------------------------------------------
>[INFO] BUILD FAILURE
>[INFO] 
>------------------------------------------------------------------------
>[INFO] Total time: 07:38 min
>[INFO] Finished at: 2015-09-24T11:31:51-04:00
>[INFO] Final Memory: 42M/200M
>[INFO] 
>------------------------------------------------------------------------
>[ERROR] Failed to execute goal
>net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile-first)
>on project atlas-typesystem: Execution scala-compile-first of goal
>net.alchim31.maven:scala-maven-plugin:3.2.0:compile failed. CompileFailed
>-> [Help 1]
>
>
>
>
>On Sep 23, 2015, at 12:16 PM, Suma Shivaprasad
><sumasai.shivaprasad@gmail.com> wrote:
>
>> Could be an issue with 0.5. I fixed an issue while querying for entities
>> with traits as part of https://reviews.apache.org/r/38179/. . Should be
>> committed soon.
>> 
>> Thanks
>> Suma
>> 
>> 
>> On Wed, Sep 23, 2015 at 8:40 PM, Shwetha Shivalingamurthy <
>> sshivalingamurthy@hortonworks.com> wrote:
>> 
>>> 'hive_table is <traitname>¹ should work. Here is the doc on DSL syntax:
>>> http://atlas.incubator.apache.org/Search.html
>>> 
>>> Regards,
>>> Shwetha
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On 23/09/15 8:30 pm, "Herman Yu" <herman.yu@teeupdata.com> wrote:
>>> 
>>>> Hi Suma,
>>>> Thanks for the help. I tried as you suggested, ³hive_table is
>>>> collection², however "0 results matching your search query hive_table
>>>>is
>>>> collection were found².
>>>> ³collection² is a trait I defined, if I just search with ³collection²
>>>>in
>>>> the UI, I have two hive_table entities returned.
>>>> I also tried with those types and traits defined with the
>>>>quick_start.py,
>>>> (e.g. "Table is Fact" didn¹t return anything.
>>>> Is this a bug with v0.5? or I used wrong search syntax? Is there a
>>>> document with all valid search syntax?
>>>> 
>>>> thanks
>>>> Herman.
>>>> 
>>>> 
>>>> On Sep 21, 2015, at 10:54 PM, Herman Yu <herman.yu@teeupdata.com>
>>>>wrote:
>>>> 
>>>> Hi Herman,
>>>> 
>>>> You can fire a DSL query in the UI as "hive_table  is "trait_name"
>>>> 
>>>> Thanks
>>>> Suma
>>>>> Hi,
>>>>> 
>>>>> With version v0.5, is search based on combination of a Trait and a
>>>>>type
>>>>> supported?  I have both hive_tables and hive_columns associated with
>>>>>a
>>>>> Trait. I can search base on the Trait, or search based on the
>>>>> type(hive_table or hive_colume). How to combine them together, for
>>>>> example, search the trait but only want to return hive_table?
>>>>> 
>>>>> I tried <traitName> and <hive_table>, <traitName> and
>>>>> typeName=<hive_table> in both UI and REST API, it doesn¹t work.
>>>>> 
>>>>> This is my first time posting here, sorry if this is not the right
>>>>> place asking questions like this. If so, what would be the correct
>>>>> channel?
>>>>> 
>>>>> Thanks
>>>>> Herman.
>>>>> 
>>>>> 
>>>> 
>>>> 
>>> 
>>> 
>

Mime
View raw message