Hi, I am new to hive. Getting following error while running show tables from hive CLI. Understand that EnforceReadOnlyTables looks for property test.src.tables , and throws following exception if this property is not set. Have set this property in the hive-site.xml, as shown below, but did not help. Even tried to set this property in hiveconf namespace, still it did not work. Any suggestions. hive-site.xml for this property looks like following.
*<-------------------hive-site.xml------>* <property> <name>test.src.tables</name> <value>tmp,tmp2</value> </property> *<--Exception details-->* Exception in thread "main" java.lang.AssertionError: Source tables cannot be empty at org.apache.hadoop.hive.ql.hooks.EnforceReadOnlyTables.<clinit>(EnforceReadOnlyTables.java:46) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.apache.hadoop.hive.ql.hooks.HookUtils.getHooks(HookUtils.java:60) at org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1612) at org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1596) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1677) at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1453) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1171) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1161) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:232) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:183) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:399) at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:776) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:714) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.util.RunJar.run(RunJar.java:234) at org.apache.hadoop.util.RunJar.main(RunJar.java:148)