Hive: Change data format for DDL output

0 votes
Hi. How can I change the data format for DDL output to json format. For example, when I use the DESCRIBE command to get the table information, the output is in plain text, I want this output to be in json. How can I do this?
May 20 in Big Data Hadoop by Ron
19 views

1 answer to this question.

0 votes

By default, the DDL output is set to text. To get the data in json format, you'll have to mention it while using the hive command. Refer to the syntax below:

$ hive --hiveconf hive.ddl.output.format="json"
answered May 20 by Karan

Related Questions In Big Data Hadoop

0 votes
1 answer
0 votes
1 answer

How can you change a column data type in Hive?

Hi, By using this command below one can ...READ MORE

answered Jun 24 in Big Data Hadoop by Gitika
• 19,720 points
24 views
0 votes
1 answer

Hadoop for data migration

You can use Hadoop for these kinds ...READ MORE

answered Apr 18, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
59 views
0 votes
1 answer
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,070 points
2,039 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,070 points
192 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,397 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
762 views
0 votes
1 answer

What is the command to know the details of your data created in a table in Hive?

Hey, Yes, there is a way to check ...READ MORE

answered May 14 in Big Data Hadoop by Gitika
• 19,720 points
67 views
0 votes
1 answer

What is the syntax for creating bucketing table in hive?

Hi, Syntax for creating bucketed table is as ...READ MORE

answered May 16 in Big Data Hadoop by Gitika
• 19,720 points
37 views