Adding -Dtest.warehouse.dir="${workspace_loc:trunk}/build/ql/test/data/warehouse" to the VM arguments in run config solves the problem.
From: Steven Wong Sent: Thursday, August 19, 2010 10:44 AM To: hive-dev@hadoop.apache.org Subject: Help with setting up Eclipse for Hive I followed http://wiki.apache.org/hadoop/Hive/GettingStarted/EclipseSetup and, when I tried to run the unit tests, Eclipse spit out the error "Variable references non-existent resource : ${workspace_loc:trunk}". I think the reason may be that the project is in /somepath/hive/trunk but the workspace is NOT in /somepath/hive, because when I started over with the workspace in /somepath/hive, the above error is gone. If this is indeed the reason, the wiki should be clarified. Then I ran into: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D Please suggest how I can fix it. Code is r984947. FWIW, "ant test" on the command line ran successfully except for 2 failed test cases. Thanks. Steven PS: Here's the complete console log: 10/08/18 16:58:52 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore 10/08/18 16:58:52 INFO metastore.ObjectStore: ObjectStore, initialize called 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.ui.ide" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.ui.views" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.jface.text" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.ui.workbench.texteditor" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.ui.editors" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.ui" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.core.expressions" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.core.resources" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.debug.core" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.debug.ui" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.jdt.core" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.jdt.ui" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.core.runtime" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.jdt.launching" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.jdt.debug.ui" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.jdt.junit.runtime" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.compare" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.ltk.core.refactoring" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.core.variables" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.ltk.ui.refactoring" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.equinox.simpleconfigurator.manipulator" but it cannot be resolved. 10/08/18 16:58:52 ERROR DataNucleus.Plugin: Bundle "org.eclipse.jdt.junit" requires "org.eclipse.equinox.frameworkadmin" but it cannot be resolved. 10/08/18 16:58:52 INFO DataNucleus.Persistence: Property datanucleus.cache.level2 unknown - will be ignored 10/08/18 16:58:52 INFO DataNucleus.Persistence: Property javax.jdo.option.NonTransactionalRead unknown - will be ignored 10/08/18 16:58:52 INFO DataNucleus.Persistence: ================= Persistence Configuration =============== 10/08/18 16:58:52 INFO DataNucleus.Persistence: DataNucleus Persistence Factory - Vendor: "DataNucleus" Version: "2.0.3" 10/08/18 16:58:52 INFO DataNucleus.Persistence: DataNucleus Persistence Factory initialised for datastore URL="jdbc:derby:;databaseName=../build/test/junit_metastore_db;create=true" driver="org.apache.derby.jdbc.EmbeddedDriver" userName="APP" 10/08/18 16:58:52 INFO DataNucleus.Persistence: =========================================================== 10/08/18 16:58:54 INFO Datastore.Schema: Initialising Catalog "", Schema "APP" using "None" auto-start option 10/08/18 16:58:54 INFO Datastore.Schema: Catalog "", Schema "APP" initialised - managing 0 classes 10/08/18 16:58:54 INFO DataNucleus.MetaData: Registering listener for metadata initialisation 10/08/18 16:58:54 INFO metastore.ObjectStore: Initialized ObjectStore 10/08/18 16:58:54 WARN DataNucleus.MetaData: MetaData Parser encountered an error in file "file:/Users/swong/dev/svn/asf/hadoop/hive/trunk/build/eclipse-classes/package.jdo" at line 4, column 6 : cvc-elt.1: Cannot find the declaration of element 'jdo'. - Please check your specification of DTD and the validity of the MetaData XML that you have specified. 10/08/18 16:58:54 WARN DataNucleus.MetaData: MetaData Parser encountered an error in file "file:/Users/swong/dev/svn/asf/hadoop/hive/trunk/build/eclipse-classes/package.jdo" at line 291, column 13 : The content of element type "class" must match "(extension*,implements*,datastore-identity?,primary-key?,inheritance?,version?,join*,foreign-key*,index*,unique*,column*,field*,property*,query*,fetch-group*,extension*)". - Please check your specification of DTD and the validity of the MetaData XML that you have specified. 10/08/18 16:58:54 WARN DataNucleus.MetaData: MetaData Parser encountered an error in file "file:/Users/swong/dev/svn/asf/hadoop/hive/trunk/build/eclipse-classes/package.jdo" at line 338, column 13 : The content of element type "class" must match "(extension*,implements*,datastore-identity?,primary-key?,inheritance?,version?,join*,foreign-key*,index*,unique*,column*,field*,property*,query*,fetch-group*,extension*)". - Please check your specification of DTD and the validity of the MetaData XML that you have specified. 10/08/18 16:58:54 INFO DataNucleus.Persistence: Managing Persistence of Class : org.apache.hadoop.hive.metastore.model.MDatabase [Table : DBS, InheritanceStrategy : new-table] 10/08/18 16:58:54 INFO Datastore.Schema: Validating 2 unique key(s) for table DBS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 0 foreign key(s) for table DBS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 2 index(es) for table DBS 10/08/18 16:58:55 INFO DataNucleus.MetaData: Listener found initialisation for persistable class org.apache.hadoop.hive.metastore.model.MDatabase 10/08/18 16:58:55 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=table_for_testtable 10/08/18 16:58:55 INFO DataNucleus.Datastore: The class "org.apache.hadoop.hive.metastore.model.MFieldSchema" is tagged as "embedded-only" so does not have its own datastore table. 10/08/18 16:58:55 INFO DataNucleus.Persistence: Managing Persistence of Class : org.apache.hadoop.hive.metastore.model.MSerDeInfo [Table : SERDES, InheritanceStrategy : new-table] 10/08/18 16:58:55 INFO DataNucleus.Datastore: The class "org.apache.hadoop.hive.metastore.model.MOrder" is tagged as "embedded-only" so does not have its own datastore table. 10/08/18 16:58:55 INFO DataNucleus.Persistence: Managing Persistence of Class : org.apache.hadoop.hive.metastore.model.MStorageDescriptor [Table : SDS, InheritanceStrategy : new-table] 10/08/18 16:58:55 INFO DataNucleus.Persistence: Managing Persistence of Class : org.apache.hadoop.hive.metastore.model.MTable [Table : TBLS, InheritanceStrategy : new-table] 10/08/18 16:58:55 INFO DataNucleus.Persistence: Managing Persistence of Field : org.apache.hadoop.hive.metastore.model.MSerDeInfo.parameters [Table : SERDE_PARAMS] 10/08/18 16:58:55 INFO DataNucleus.Persistence: Managing Persistence of Field : org.apache.hadoop.hive.metastore.model.MTable.parameters [Table : TABLE_PARAMS] 10/08/18 16:58:55 INFO DataNucleus.Persistence: Managing Persistence of Field : org.apache.hadoop.hive.metastore.model.MTable.partitionKeys [Table : PARTITION_KEYS] 10/08/18 16:58:55 INFO DataNucleus.Persistence: Managing Persistence of Field : org.apache.hadoop.hive.metastore.model.MStorageDescriptor.bucketCols [Table : BUCKETING_COLS] 10/08/18 16:58:55 INFO DataNucleus.Persistence: Managing Persistence of Field : org.apache.hadoop.hive.metastore.model.MStorageDescriptor.cols [Table : COLUMNS] 10/08/18 16:58:55 INFO DataNucleus.Persistence: Managing Persistence of Field : org.apache.hadoop.hive.metastore.model.MStorageDescriptor.parameters [Table : SD_PARAMS] 10/08/18 16:58:55 INFO DataNucleus.Persistence: Managing Persistence of Field : org.apache.hadoop.hive.metastore.model.MStorageDescriptor.sortCols [Table : SORT_COLS] 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 unique key(s) for table SERDES 10/08/18 16:58:55 INFO Datastore.Schema: Validating 0 foreign key(s) for table SERDES 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 index(es) for table SERDES 10/08/18 16:58:55 INFO Datastore.Schema: Validating 2 unique key(s) for table TBLS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 2 foreign key(s) for table TBLS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 4 index(es) for table TBLS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 unique key(s) for table SDS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 foreign key(s) for table SDS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 2 index(es) for table SDS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 unique key(s) for table BUCKETING_COLS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 foreign key(s) for table BUCKETING_COLS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 2 index(es) for table BUCKETING_COLS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 unique key(s) for table SORT_COLS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 foreign key(s) for table SORT_COLS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 2 index(es) for table SORT_COLS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 unique key(s) for table SD_PARAMS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 foreign key(s) for table SD_PARAMS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 2 index(es) for table SD_PARAMS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 unique key(s) for table PARTITION_KEYS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 foreign key(s) for table PARTITION_KEYS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 2 index(es) for table PARTITION_KEYS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 unique key(s) for table SERDE_PARAMS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 foreign key(s) for table SERDE_PARAMS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 2 index(es) for table SERDE_PARAMS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 unique key(s) for table COLUMNS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 foreign key(s) for table COLUMNS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 2 index(es) for table COLUMNS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 unique key(s) for table TABLE_PARAMS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 1 foreign key(s) for table TABLE_PARAMS 10/08/18 16:58:55 INFO Datastore.Schema: Validating 2 index(es) for table TABLE_PARAMS 10/08/18 16:58:55 INFO hive.log: DDL: struct table_for_testtable { i32 col1, string col2, double col3} 10/08/18 16:58:55 INFO metastore.HiveMetaStore: 0: create_table: db=default tbl=table_for_testtable 10/08/18 16:58:55 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=table_for_testtable org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:332) at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:307) at org.apache.hadoop.hive.ql.metadata.TestHive.testTable(TestHive.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D at org.apache.hadoop.fs.Path.initialize(Path.java:140) at org.apache.hadoop.fs.Path.<init>(Path.java:132) at org.apache.hadoop.hive.metastore.Warehouse.getDnsPath(Warehouse.java:101) at org.apache.hadoop.hive.metastore.Warehouse.getWhRoot(Warehouse.java:115) at org.apache.hadoop.hive.metastore.Warehouse.getDefaultDatabasePath(Warehouse.java:121) at org.apache.hadoop.hive.metastore.Warehouse.getDefaultTablePath(Warehouse.java:128) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_core(HiveMetaStore.java:663) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.access$5(HiveMetaStore.java:638) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler$12.run(HiveMetaStore.java:712) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler$12.run(HiveMetaStore.java:1) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.executeWithRetry(HiveMetaStore.java:229) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table(HiveMetaStore.java:709) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:289) at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:326) ... 20 more Caused by: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D at java.net.URI.checkPath(URI.java:1787) at java.net.URI.<init>(URI.java:735) at org.apache.hadoop.fs.Path.initialize(Path.java:137) ... 33 more junit.framework.AssertionFailedError: Unable to create table: table_for_testtable at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.apache.hadoop.hive.ql.metadata.TestHive.testTable(TestHive.java:144) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) testTable failed 10/08/18 16:58:55 INFO metadata.Hive: Closing current thread's connection to Hive Metastore. 10/08/18 16:58:56 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=table_for_test_thrifttable 10/08/18 16:58:56 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore 10/08/18 16:58:56 INFO metastore.ObjectStore: ObjectStore, initialize called 10/08/18 16:58:56 INFO metastore.ObjectStore: Initialized ObjectStore 10/08/18 16:58:56 INFO hive.log: DDL: struct table_for_test_thrifttable { } 10/08/18 16:58:56 INFO metastore.HiveMetaStore: 0: create_table: db=default tbl=table_for_test_thrifttable 10/08/18 16:58:56 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=table_for_test_thrifttable org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:332) at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:307) at org.apache.hadoop.hive.ql.metadata.TestHive.testThriftTable(TestHive.java:214) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D at org.apache.hadoop.fs.Path.initialize(Path.java:140) at org.apache.hadoop.fs.Path.<init>(Path.java:132) at org.apache.hadoop.hive.metastore.Warehouse.getDnsPath(Warehouse.java:101) at org.apache.hadoop.hive.metastore.Warehouse.getWhRoot(Warehouse.java:115) at org.apache.hadoop.hive.metastore.Warehouse.getDefaultDatabasePath(Warehouse.java:121) at org.apache.hadoop.hive.metastore.Warehouse.getDefaultTablePath(Warehouse.java:128) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_core(HiveMetaStore.java:663) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.access$5(HiveMetaStore.java:638) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler$12.run(HiveMetaStore.java:712) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler$12.run(HiveMetaStore.java:1) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.executeWithRetry(HiveMetaStore.java:229) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table(HiveMetaStore.java:709) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:289) at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:326) ... 20 more Caused by: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D at java.net.URI.checkPath(URI.java:1787) at java.net.URI.<init>(URI.java:735) at org.apache.hadoop.fs.Path.initialize(Path.java:137) ... 33 more junit.framework.AssertionFailedError: Unable to create table: table_for_test_thrifttable at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.apache.hadoop.hive.ql.metadata.TestHive.testThriftTable(TestHive.java:217) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) testThriftTable() failed 10/08/18 16:58:56 INFO metadata.Hive: Closing current thread's connection to Hive Metastore. 10/08/18 16:58:56 INFO metadata.Hive: Closing current thread's connection to Hive Metastore. 10/08/18 16:58:56 INFO metadata.Hive: Closing current thread's connection to Hive Metastore. 10/08/18 16:58:56 INFO metastore.HiveMetaStore: 0: drop_database: db_for_testgettables 10/08/18 16:58:56 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore 10/08/18 16:58:56 INFO metastore.ObjectStore: ObjectStore, initialize called 10/08/18 16:58:56 INFO metastore.ObjectStore: Initialized ObjectStore 10/08/18 16:58:56 INFO metastore.ObjectStore: Dropping database along with all tables db_for_testgettables java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D at org.apache.hadoop.fs.Path.initialize(Path.java:140) at org.apache.hadoop.fs.Path.<init>(Path.java:132) at org.apache.hadoop.hive.metastore.Warehouse.getDnsPath(Warehouse.java:101) at org.apache.hadoop.hive.metastore.Warehouse.getWhRoot(Warehouse.java:115) at org.apache.hadoop.hive.metastore.Warehouse.getDefaultDatabasePath(Warehouse.java:123) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.drop_database_core(HiveMetaStore.java:502) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.access$4(HiveMetaStore.java:491) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler$7.run(HiveMetaStore.java:521) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler$7.run(HiveMetaStore.java:1) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.executeWithRetry(HiveMetaStore.java:229) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.drop_database(HiveMetaStore.java:518) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.dropDatabase(HiveMetaStoreClient.java:323) at org.apache.hadoop.hive.ql.metadata.Hive.dropDatabase(Hive.java:717) at org.apache.hadoop.hive.ql.metadata.TestHive.testGetAndDropTables(TestHive.java:284) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D at java.net.URI.checkPath(URI.java:1787) at java.net.URI.<init>(URI.java:735) at org.apache.hadoop.fs.Path.initialize(Path.java:137) ... 31 more testGetTables() failed 10/08/18 16:58:56 INFO metadata.Hive: Closing current thread's connection to Hive Metastore. 10/08/18 16:58:56 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=table_for_testpartition 10/08/18 16:58:56 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore 10/08/18 16:58:56 INFO metastore.ObjectStore: ObjectStore, initialize called 10/08/18 16:58:56 INFO metastore.ObjectStore: Initialized ObjectStore 10/08/18 16:58:56 INFO hive.log: DDL: struct table_for_testpartition { string key, string value} 10/08/18 16:58:56 INFO metastore.HiveMetaStore: 0: create_table: db=default tbl=table_for_testpartition 10/08/18 16:58:56 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=table_for_testpartition org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:332) at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:307) at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:249) at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:194) at org.apache.hadoop.hive.ql.metadata.TestHive.testPartition(TestHive.java:340) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D at org.apache.hadoop.fs.Path.initialize(Path.java:140) at org.apache.hadoop.fs.Path.<init>(Path.java:132) at org.apache.hadoop.hive.metastore.Warehouse.getDnsPath(Warehouse.java:101) at org.apache.hadoop.hive.metastore.Warehouse.getWhRoot(Warehouse.java:115) at org.apache.hadoop.hive.metastore.Warehouse.getDefaultDatabasePath(Warehouse.java:121) at org.apache.hadoop.hive.metastore.Warehouse.getDefaultTablePath(Warehouse.java:128) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_core(HiveMetaStore.java:663) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.access$5(HiveMetaStore.java:638) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler$12.run(HiveMetaStore.java:712) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler$12.run(HiveMetaStore.java:1) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.executeWithRetry(HiveMetaStore.java:229) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table(HiveMetaStore.java:709) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:289) at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:326) ... 22 more Caused by: java.net.URISyntaxException: Relative path in absolute URI: file:$%7Btest.warehouse.dir%7D at java.net.URI.checkPath(URI.java:1787) at java.net.URI.<init>(URI.java:735) at org.apache.hadoop.fs.Path.initialize(Path.java:137) ... 35 more junit.framework.AssertionFailedError: Unable to create table: table_for_testpartition at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.apache.hadoop.hive.ql.metadata.TestHive.testPartition(TestHive.java:344) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) testPartition() failed 10/08/18 16:58:56 INFO metadata.Hive: Closing current thread's connection to Hive Metastore.