in Education by
I want to put my Results of a hiveql query into a CSV file. How can I do it? I tried doing this, but it didn’t work. insert overwrite directory '/download/output.csv' select goods from the table; Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
You are using the right command insert overwrite ,it is the best function to use to save data in a file, but it is saving data in HDFS directory.So, you will not find the data in your local csv file.To save the data in your Local machine you have to use the word “local” insert overwrite local directory '/download/output.csv' select goods from table; This will save the Data in your csv file. Hope this helps!

Related questions

0 votes
    Can someone tell me what is metadata? What is the difference between Internal tables and external tables in the hive? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me why Hive is used in Hadoop? Select the correct answer from above options...
asked Jan 11, 2022 in Education by JackTerrance
0 votes
    I run hive query by java code. Example: "SELECT * FROM table WHERE id > 100" How to export result to hdfs file.a Select the correct answer from above options...
asked Jan 28, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me what kind of data warehouse application is suitable for Hive? Select the correct answer from above options...
asked Jan 8, 2022 in Education by JackTerrance
0 votes
    Is there any way or any command which I can use in command prompt to know the version of Hadoop? Also, how ... the version of Hive? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    In the hive, partitioning and bucketing a table, both are done on a column. But how exactly are they different? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    What is the difference between Hadoop, HBase, Hive and Pig? I know the basic Definitions of all these terms, But ... can these be used? Select the correct answer from above options...
asked Jan 20, 2022 in Education by JackTerrance
0 votes
    I have just started with Hadoop. Using Cloudera's Hadoop VM, I worked with Hive, Pig and Hadoop. As I worked, ... we need them both? Select the correct answer from above options...
asked Jan 20, 2022 in Education by JackTerrance
0 votes
    Will I get a job in Big Data without relevant experience in the domain? Select the correct answer from above options...
asked Jan 6, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me how to learn Hadoop? Select the correct answer from above options...
asked Jan 10, 2022 in Education by JackTerrance
0 votes
    I am having some trouble writing the code for wordcount program using MapReduce, I could use some help. Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    I tried reading from various sources but I am still not very clear about their difference. What majorly seperates Mongodb and Hadoop? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me why Hadoop is used in data analytics? Select the correct answer from above options...
asked Jan 8, 2022 in Education by JackTerrance
0 votes
    Is there an easy way to run a MySQL query from the Linux command line and output the results in CSV format? Here's what I'm doing now: mysql -u uid -ppwd -D dbname...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    In Hive, when we do a query (like: select * from employee), we do not get any column names in the ... when you execute any query? Select the correct answer from above options...
asked Jan 28, 2022 in Education by JackTerrance
...