Login  Register

Re: carbon data

Posted by Liang Chen on Nov 28, 2016; 1:15pm
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/carbon-data-tp3305p3315.html

Hi Lionel

Don't need to create table first, please find the example code in
ExampleUtils.scala

df.write
    .format("carbondata")
    .option("tableName", tableName)
    .option("compress", "true")
    .option("useKettle", "false")
    .mode(mode)
    .save()

Preparing API docs is in progress.

Regards
Liang
2016-11-28 20:24 GMT+08:00 Lu Cao <[hidden email]>:

> Hi team,
> I'm trying to save spark dataframe to carbondata file. I see the example in
> your wiki
> option("tableName", "carbontable"). Does that mean I have to create a
> carbondata table first and then save data into the table? Can I save it
> directly without creating the carbondata table?
>
> the code is
> df.write.format("carbondata").mode(SaveMode.Append).save("
> hdfs:///user/****/data.carbon")
>
> BTW, do you have the formal api doc?
>
> Thanks,
> Lionel
>



--
Regards
Liang