You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Bharath R (JIRA)" <ji...@apache.org> on 2010/12/30 14:36:58 UTC

[jira] Created: (HIVE-1872) Hive process is exiting on executing ALTER query

Hive process is exiting on executing ALTER query
------------------------------------------------

                 Key: HIVE-1872
                 URL: https://issues.apache.org/jira/browse/HIVE-1872
             Project: Hive
          Issue Type: Bug
          Components: CLI, Server Infrastructure
    Affects Versions: 0.6.0
         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
Hadoop 0.20.1
Hive 0.6.0
            Reporter: Bharath R 
             Fix For: 0.6.0


Hive process is exiting on executing the below queries in the same order as mentioned

1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'

2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'

After the second query execution , the hive throws the below exception and exiting the process

10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
        at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
        at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
        at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
        at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
        at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
        at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
        at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
        at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
        at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
        at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
        at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)


As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 

It is not good to exit the HIVE process when the query is incorrect.

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


[jira] Commented: (HIVE-1872) Hive process is exiting on executing ALTER query

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987712#action_12987712 ] 

John Sichi commented on HIVE-1872:
----------------------------------

Calling System.exit is definitely a problem since for HIVE-549, this causes JUnit to treat the JVM as crashed.  It seems like just returning 9 should be good enough, since all the same System.exit processing (thread-killing and shutdown hook execution) will take place as soon as the main thread returns; the only difference is that JUnit gets a chance to clean up as the stack unwinds.

interrupt isn't really guaranteed to do much more, e.g. threads can catch and ignore InterruptedException, so I don't think we should bother adding it.

If there's a reason we need to leave the explicit System.exit call there, then maybe we need a conf to tell it not to do that during tests.


> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>            Assignee: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] Commented: (HIVE-1872) Hive process is exiting on executing ALTER query

Posted by "He Yongqiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985864#action_12985864 ] 

He Yongqiang commented on HIVE-1872:
------------------------------------

Bharath, i am not sure about your use case. Ignoring an error maybe not a good idea, especially this 'set location' command, because it may cause the following queries give wrong results.

And i saw there is a .q file added to negativequeries, you need to also include a .q.out file using 'ant test -Dtestcase=TestNegativeCliDriver -Dqfile=xxx.q -Doverwrite=true'

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>            Assignee: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] Commented: (HIVE-1872) Hive process is exiting on executing ALTER query

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985529#action_12985529 ] 

Namit Jain commented on HIVE-1872:
----------------------------------

Yongqiang, can you take a look ?
I dont remember the exact usecase, but remember some discussions around it

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] Commented: (HIVE-1872) Hive process is exiting on executing ALTER query

Posted by "Bharath R (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987395#action_12987395 ] 

Bharath R  commented on HIVE-1872:
----------------------------------

Based on the thread  HIVE-549 ,  there was a comment to cleanup the running jobs if one of them have failed. 

	* Shall we immediately stop all other running jobs if one of them have failed?
		+ console.printError(errorMessage);
		+ taskCleanup(runnable); 

This comment was implemented by calling System.exit(9). This makes the JVM to exit. 

Rather than relying on the ShutdownHook , we could directly invoke that functionality in the taskCleanUp

As per my proposed solution , in taskCleanup. 

                 1)  Sending an interrupt to runningJobs "TaskRunner" so that the task associated will be interrupted. 
                 2)  And  if the task is "MapRed" task, then the task cleanup should post the "kill url" from "runningJobKillURIs" hashmap in ExecDriver

Comments?  

Thanks

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>            Assignee: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] Updated: (HIVE-1872) Hive process is exiting on executing ALTER query

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

Carl Steinbach updated HIVE-1872:
---------------------------------

    Fix Version/s:     (was: 0.6.0)

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] Commented: (HIVE-1872) Hive process is exiting on executing ALTER query

Posted by "Bharath R (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12976628#action_12976628 ] 

Bharath R  commented on HIVE-1872:
----------------------------------

As per the "Alter" query , two DDL tasks will be created. 
When the first task execution is failed, the "taskCleanup" is internally stopping the VM. 


{code}


if (running.size() != 0) {
		taskCleanup();
}

public void taskCleanup()
{
	    // The currently existing Shutdown hooks will be automatically called, 
	    // killing the map-reduce processes. 
	    // The non MR processes will be killed as well.
	    System.exit(9);
}

{code}

Here, the System.exit(9) is used to kill all the "map-reduce" and "non-MR" process. 
Instead of killing all the MR and non-MR process , we can kill only the current running processes 

The update code will be ,. 

{code}
public void taskCleanup(Map<TaskResult, TaskRunner> running) {
	
	    // get all the remaining running process , 
	    Set < Entry < TaskResult, TaskRunner >> entrySet = running.entrySet ();
	    for(Entry <TaskResult, TaskRunner> entry : entrySet)
	    {
	        TaskRunner value = entry.getValue ();
		// Interrupt. 
	        value.interrupt ();
	    }
	}
{code}

This will internally kills the task ( which need not required to be exeuted ).  

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] Updated: (HIVE-1872) Hive process is exiting on executing ALTER query

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

Bharath R  updated HIVE-1872:
-----------------------------

    Attachment: HIVE-1872.1.patch

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] [Commented] (HIVE-1872) Hive process is exiting on executing ALTER query

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

John Sichi commented on HIVE-1872:
----------------------------------

Good point about Hive server.  As a short-term solution to flaky tests, adding a config param that is only enabled for tests should still work fine, but I agree that it would be best to address the bigger issues.

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>            Assignee: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (HIVE-1872) Hive process is exiting on executing ALTER query

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

Bharath R  updated HIVE-1872:
-----------------------------

    Release Note: Avoiding System.exit () for killing the MR Process , instead kill the task ( which are not required to be executed ) 
          Status: Patch Available  (was: Open)

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] Commented: (HIVE-1872) Hive process is exiting on executing ALTER query

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987236#action_12987236 ] 

John Sichi commented on HIVE-1872:
----------------------------------

Note that the System.exit was introduced in HIVE-549; maybe worth revisiting some of the discussion at the end of the comments there regarding refactoring to use JobControl.


> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>            Assignee: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] Work started: (HIVE-1872) Hive process is exiting on executing ALTER query

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

Work on HIVE-1872 started by Bharath R .

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>            Assignee: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] Updated: (HIVE-1872) Hive process is exiting on executing ALTER query

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

He Yongqiang updated HIVE-1872:
-------------------------------

    Status: Open  (was: Patch Available)

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>            Assignee: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] [Commented] (HIVE-1872) Hive process is exiting on executing ALTER query

Posted by "Chinna Rao Lalam (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13013960#comment-13013960 ] 

Chinna Rao Lalam commented on HIVE-1872:
----------------------------------------

 Here i have few doubts. Just returning 9 will solve the problem of exiting jvm, but all the tasks (Mapred task and Non mapred task) that are running  will still continue to run if main thread is not returning (In case of HiveServer), there by wasting the cluster resources.  So the problem here is not only exiting the JVM but also the running tasks. Any suggestions on this.

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>            Assignee: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (HIVE-1872) Hive process is exiting on executing ALTER query

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987222#action_12987222 ] 

John Sichi commented on HIVE-1872:
----------------------------------

I don't know about the solution, but I think the System.exit is also the cause of HIVE-1867, which has been intermittently preventing ant test from passing.

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>            Assignee: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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


[jira] Assigned: (HIVE-1872) Hive process is exiting on executing ALTER query

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

Namit Jain reassigned HIVE-1872:
--------------------------------

    Assignee: Bharath R 

> Hive process is exiting on executing ALTER query
> ------------------------------------------------
>
>                 Key: HIVE-1872
>                 URL: https://issues.apache.org/jira/browse/HIVE-1872
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Server Infrastructure
>    Affects Versions: 0.6.0
>         Environment: SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (3)
> Hadoop 0.20.1
> Hive 0.6.0
>            Reporter: Bharath R 
>            Assignee: Bharath R 
>         Attachments: HIVE-1872.1.patch
>
>
> Hive process is exiting on executing the below queries in the same order as mentioned
> 1) CREATE TABLE SAMPLETABLE(IP STRING , showtime BIGINT ) partitioned by (ds string,ipz int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\040'
> 2) ALTER TABLE SAMPLETABLE add Partition(ds='sf') location '/user/hive/warehouse' Partition(ipz=100) location '/user/hive/warehouse'
> After the second query execution , the hive throws the below exception and exiting the process
> 10:09:03 ERROR exec.DDLTask: FAILED: Error in metadata: table is partitioned but partition spec is not specified or tab: {ipz=100}
> org.apache.hadoop.hive.ql.metadata.HiveException: table is partitioned but partition spec is not specified or tab: {ipz=100}
>         at org.apache.hadoop.hive.ql.metadata.Table.isValidSpec(Table.java:341)
>         at org.apache.hadoop.hive.ql.metadata.Hive.getPartition(Hive.java:902)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.addPartition(DDLTask.java:282)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:191)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384)
>         at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:114)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:378)
>         at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:366)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> As the "alter" query is incorrect the exception was thrown, ideally it should be "ALTER TABLE SAMPLETABLE add Partition(ds='sf',ipz=100) location '/user/hive/warehouse'". 
> It is not good to exit the HIVE process when the query is incorrect.

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