carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "cen yuhai (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CARBONDATA-1153) Can not add column
Date Sun, 09 Jul 2017 14:37:00 GMT

    [ https://issues.apache.org/jira/browse/CARBONDATA-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16079624#comment-16079624
] 

cen yuhai commented on CARBONDATA-1153:
---------------------------------------

I found the root cause, I don't have a carbon.properties
{code}
17/07/09 19:08:13 ERROR HdfsFileLock: Executor task launch worker for task 7 Incomplete HDFS
URI, no host: hdfs://mycluster../carbon.store/temp/yuhai_carbon/d91e35aa-5f13-499c-adcb-94fc20dcf8fb.lock
java.io.IOException: Incomplete HDFS URI, no host: hdfs://mycluster../carbon.store/temp/yuhai_carbon/d91e35aa-5f13-499c-adcb-94fc20dcf8fb.lock
{code}


> Can not add column
> ------------------
>
>                 Key: CARBONDATA-1153
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1153
>             Project: CarbonData
>          Issue Type: Bug
>          Components: spark-integration
>    Affects Versions: 1.2.0
>            Reporter: cen yuhai
>
> Sometimes it will throws exception as below. why can't I add column? no one are altering
the table... 
> {code}
> scala> carbon.sql("alter table temp.yuhai_carbon add columns(test1 string)")
> 17/06/11 22:09:13 AUDIT [org.apache.spark.sql.execution.command.AlterTableAddColumns(207)
-- main]: [sh-hadoop-datanode-250-104.elenet.me][master][Thread-1]Alter table add columns
request has been received for temp.yuhai_carbon
> 17/06/11 22:10:22 ERROR [org.apache.spark.scheduler.TaskSetManager(70) -- task-result-getter-3]:
Task 0 in stage 0.0 failed 4 times; aborting job
> 17/06/11 22:10:22 ERROR [org.apache.spark.sql.execution.command.AlterTableAddColumns(141)
-- main]: main Alter table add columns failed :Job aborted due to stage failure: Task 0 in
stage 0.0 failed 4 times, most recent failure: Lost task 0.3 in stage 0.0 (TID 3, sh-hadoop-datanode-368.elenet.me,
executor 7): java.lang.RuntimeException: Dictionary file test1 is locked for updation. Please
try after some time
>         at scala.sys.package$.error(package.scala:27)
>         at org.apache.carbondata.spark.util.GlobalDictionaryUtil$.loadDefaultDictionaryValueForNewColumn(GlobalDictionaryUtil.scala:857)
>         at org.apache.carbondata.spark.rdd.AlterTableAddColumnRDD$$anon$1.<init>(AlterTableAddColumnRDD.scala:83)
>         at org.apache.carbondata.spark.rdd.AlterTableAddColumnRDD.compute(AlterTableAddColumnRDD.scala:68)
>         at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:331)
>         at org.apache.spark.rdd.RDD.iterator(RDD.scala:295)
>         at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:88)
>         at org.apache.spark.scheduler.Task.run(Task.scala:104)
>         at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:351)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message