Before getting to detail error messages I got. I have a metadata model implemented and want to test all the search syntax/patterns, as well as REST API creating/update entities. Prefer to test with v-0.6. Is there a binary tar ball of v-0.6 available for download? I think there was a Jira asking for binary tall ball and the last update is to provide this.
I downloaded and applied ATLAS-128.patch. When tried to apply patch 180.v2, got the following error message: atlas]# git apply --check ../ATLAS-180-v2.patch error: patch failed: docs/pom.xml:32 error: docs/pom.xml: patch does not apply error: patch failed: docs/src/site/site.xml:77 error: docs/src/site/site.xml: patch does not apply error: patch failed: docs/src/site/twiki/Architecture.twiki:14 error: docs/src/site/twiki/Architecture.twiki: patch does not apply error: patch failed: docs/src/site/twiki/Bridge-Hive.twiki:22 error: docs/src/site/twiki/Bridge-Hive.twiki: patch does not apply error: patch failed: docs/src/site/twiki/index.twiki:11 error: docs/src/site/twiki/index.twiki: patch does not apply error: patch failed: pom.xml:24 error: pom.xml: patch does not apply error: patch failed: webapp/pom.xml:54 error: webapp/pom.xml: patch does not apply I then manually checked atlas/pom.xml, line 1332 and 1333 already have <source>1.7</source> and <target>1.7</target>, so I assume this patch had been applied since I retrieved from git repository this morning. Went ahead and kick off the built, this time, error messages are shown below. I am using JDK 1.8.0_40-b25. [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] javac: invalid target release: 1.7 [ERROR] Usage: javac <options> <source files> [ERROR] use -help for a list of possible options [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] apache-atlas ....................................... SUCCESS [01:27 min] [INFO] Apache Atlas Typesystem ............................ FAILURE [03:33 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: 05:16 min [INFO] Finished at: 2015-09-28T11:33:57-04:00 [INFO] Final Memory: 43M/219M [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] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :atlas-typesystem Thanks Herman. On Sep 28, 2015, at 8:58 AM, Herman Yu <[email protected]> wrote: > Thanks Suma and Shwetha, can I manually apply patches from 180, and then > 128, and try to build the package now? > > Thanks > Herman. > > > > On Sep 28, 2015, at 1:33 AM, Suma Shivaprasad <[email protected]> > wrote: > >> 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. >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>> >>>>> >>>> >>> >>> >
