You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Carl Steinbach (JIRA)" <ji...@apache.org> on 2010/01/18 12:56:54 UTC

[jira] Created: (HIVE-1064) NPE when operating HiveCLI in distributed mode

NPE when operating HiveCLI in distributed mode
----------------------------------------------

                 Key: HIVE-1064
                 URL: https://issues.apache.org/jira/browse/HIVE-1064
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Query Processor
    Affects Versions: 0.6.0
            Reporter: Carl Steinbach
            Assignee: Carl Steinbach


{code}
hive> select id, name from tab_a;
select id, name from tab_a;
10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
Total MapReduce jobs = 1
10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
Launching Job 1 out of 1
10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
Number of reduce tasks is set to 0 since there's no reduce operator
10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
FAILED: Unknown exception : null
10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
java.lang.NullPointerException
	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)

hive> 
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802685#action_12802685 ] 

Ning Zhang commented on HIVE-1064:
----------------------------------

Carl, there are a lot of conflicts when applying this patch to the latest trunk. It may be because of the two large patches committed recently. There should not be further large patches in recently, can you  resolve the conflicts and resubmit a new patch? I'll start reviewing right away from there.

> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802686#action_12802686 ] 

Ning Zhang commented on HIVE-1064:
----------------------------------

Also can you add a unit test?

> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802994#action_12802994 ] 

Carl Steinbach commented on HIVE-1064:
--------------------------------------

@Ning: I'm running Hive on top of an 0.18.3 pseudo-distributed mode cluster.
Any query requiring an MR phase produces an NPE in ExecDriver.execute() 
because the ExecDriver.initialize() method is not getting called. 

> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.2.patch, HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-1064:
---------------------------------

    Attachment: HIVE-1064.patch

> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>         Attachments: HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803094#action_12803094 ] 

Ning Zhang commented on HIVE-1064:
----------------------------------

Carl, please remember to open a JIRA for adding a unit test if possible. That's the best way to prevent this happening in the future. 

> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.2.patch, HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ning Zhang updated HIVE-1064:
-----------------------------

      Resolution: Fixed
    Release Note: Patch committed to trunk. Thanks Carl!
          Status: Resolved  (was: Patch Available)

> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.2.patch, HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-1064:
---------------------------------

    Release Note:   (was: Patch committed to trunk. Thanks Carl!)

> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.2.patch, HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-1064:
---------------------------------

    Fix Version/s: 0.6.0
           Status: Patch Available  (was: Open)

* Fixes NPE by updating signature of ExecDriver.initialize().
* Add @Override annotation initialize() methods.
* Remove unnecessary initialize() methods.


> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803115#action_12803115 ] 

Carl Steinbach commented on HIVE-1064:
--------------------------------------

@Ning: See HIVE-1080


> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.2.patch, HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803050#action_12803050 ] 

Ning Zhang commented on HIVE-1064:
----------------------------------

Thanks Carl. 

The parallel test failed on hadoop 0.17.2.1. I'll rerun tests in sequential.

> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.2.patch, HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802889#action_12802889 ] 

Ning Zhang commented on HIVE-1064:
----------------------------------

+1. The code changes looks good. Will commit once the  tests pass. 

One questions though: what are the situation you see this NPE? I cannot reproduce it from trunk.

> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.2.patch, HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802762#action_12802762 ] 

Carl Steinbach commented on HIVE-1064:
--------------------------------------

* Updated the patch against trunk.
* Will open another JIRA to track adding a distributed mode testcase.


> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.2.patch, HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1064) NPE when operating HiveCLI in distributed mode

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-1064:
---------------------------------

    Attachment: HIVE-1064.2.patch

> NPE when operating HiveCLI in distributed mode
> ----------------------------------------------
>
>                 Key: HIVE-1064
>                 URL: https://issues.apache.org/jira/browse/HIVE-1064
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.6.0
>
>         Attachments: HIVE-1064.2.patch, HIVE-1064.patch
>
>
> {code}
> hive> select id, name from tab_a;
> select id, name from tab_a;
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parsing command: select id, name from tab_a
> 10/01/18 03:55:59 INFO parse.ParseDriver: Parse Completed
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
> 10/01/18 03:55:59 INFO parse.SemanticAnalyzer: Get metadata for source tables
> 10/01/18 03:55:59 INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
> 10/01/18 03:55:59 INFO metastore.ObjectStore: ObjectStore, initialize called
> 10/01/18 03:56:03 INFO metastore.ObjectStore: Initialized ObjectStore
> 10/01/18 03:56:03 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=tab_a
> 10/01/18 03:56:03 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for subqueries
> 10/01/18 03:56:03 INFO parse.SemanticAnalyzer: Get metadata for destination tables
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for FS(2)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for SEL(1)
> 10/01/18 03:56:04 INFO ppd.OpProcFactory: Processing for TS(0)
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO hive.log: DDL: struct tab_a { i32 id, string file, string name}
> 10/01/18 03:56:04 INFO parse.SemanticAnalyzer: Completed plan generation
> 10/01/18 03:56:04 INFO ql.Driver: Semantic Analysis Completed
> 10/01/18 03:56:04 INFO ql.Driver: Starting command: select id, name from tab_a
> Total MapReduce jobs = 1
> 10/01/18 03:56:04 INFO ql.Driver: Total MapReduce jobs = 1
> Launching Job 1 out of 1
> 10/01/18 03:56:04 INFO ql.Driver: Launching Job 1 out of 1
> Number of reduce tasks is set to 0 since there's no reduce operator
> 10/01/18 03:56:04 INFO exec.ExecDriver: Number of reduce tasks is set to 0 since there's no reduce operator
> FAILED: Unknown exception : null
> 10/01/18 03:56:04 ERROR ql.Driver: FAILED: Unknown exception : null
> java.lang.NullPointerException
> 	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:288)
> 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:475)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:103)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:64)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:589)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:469)
> 	at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:329)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:317)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
> 	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 org.apache.hadoop.util.RunJar.main(RunJar.java:155)
> 	at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
> hive> 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.