Also pls watch for https://issues.apache.org/jira/browse/ATLAS-128 to be committed before you try this.
Thanks Suma On Mon, Sep 28, 2015 at 10:46 AM, Shwetha Shivalingamurthy < [email protected]> wrote: > Add following configuration to scala-maven-plugin. We will fix it as part > of https://issues.apache.org/jira/browse/ATLAS-180. Thanks > > <source>1.7</source> > <target>1.7</target> > > > > Regards, > Shwetha > > > > > > > On 24/09/15 10:22 pm, "Herman Yu" <[email protected]> wrote: > > >I had open JDK 1.6 (java version “1.6.0_36”, OpenJDK Runtime Environment > >(IcedTea6 1.13.8) (rhel-1.13.8.1.el6_7-x86_64),OpenJDK 64-Bit Server VM > >(build 23.25-b01, mixed mode))) > > > >I then switched to JDK 1.8 ( java version “1.8.0_40”,Java(TM) SE Runtime > >Environment (build 1.8.0_40-b25) Java HotSpot(TM) 64-Bit Server VM (build > >25.40-b25, mixed mode)) and reran “mvm clean install” , but got the same > >error messages. > > > >Thanks > >Herman. > > > > > > > >On Sep 24, 2015, at 12:10 PM, Shwetha Shivalingamurthy > ><[email protected]> wrote: > > > >> Which java version are you using? > >> > >> Regards, > >> Shwetha > >> > >> > >> > >> > >> > >> > >> On 24/09/15 9:36 pm, "Herman Yu" <[email protected]> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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/types > >>>ys > >>> 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 > >>> <[email protected]> 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 < > >>>> [email protected]> 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" <[email protected]> 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 <[email protected]> > >>>>>> 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. > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>> > >> > > > >
