Login  Register

the storepath in carbon.properties seems not work

Posted by 李寅威 on Dec 26, 2016; 9:44am
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/the-storepath-in-carbon-properties-seems-not-work-tp5029.html

Hi all:


    I'm now configing carbondata in cluster mode, and some configurations in the file carbon.properties are as bellow:


carbon.storelocation=hdfs://master:9000/carbondata
carbon.ddl.base.hdfs.url=hdfs://master:9000/carbondata/data
carbon.kettle.home=/opt/spark-1.6.0/carbonlib/carbonplugins



but when I create a table using the command:
cc.sql("create table if not exists test_table (id string, name string, city string, age Int) STORED BY 'carbondata'")


the output in the spark shell says the tablePath is a local one:
tablePath=/home/hadoop/carbondata/bin/carbonshellstore/default/test_table


and the storePath is also shown as :


scala> print(cc.storePath)
/home/hadoop/carbondata/bin/carbonshellstore



the file carbon.properties has been sent to all the nodes in the cluster. I doult where can I modify the config, looking forward to your help, thx~