Member since
09-21-2018
11
Posts
1
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
18634 | 10-18-2018 01:52 AM |
10-26-2021
03:52 AM
I know this post was a long time ago, but does the script below add text qualifiers if a field contains one or more '|'? INSERT OVERWRITE DIRECTORY '/tmp/text-pipe'
ROW FORMAT DELIMITED FIELDS TERMINATED BY '|' STORED AS TEXTFILE
SELECT * FROM textcomma; Thanks!
... View more
10-18-2018
02:37 AM
@Sivakumar Mahalingam Notice "-rw-r--r--" which indicate that the supplied path is a File (Not a Directory) Thats the reason you got an error earlier like: hdfs://quickstart.cloudera:8020/etc/hive/data/weather is not a directory or unable to create one . You have the mentioned PATH as a "file" it should be directory. Try running the following command and then # hdfs dfs -ls /etc/hive/data .
... View more
10-18-2018
01:52 AM
1 Kudo
Thank you @Jonathan Sneep I resolved the issue. It is due to typing the query in text editor and copied it to hive cli, the single quote was malformed.
... View more
10-17-2018
04:47 AM
@Sivakumar Mahalingam, I guess the problem is with quotes. use ' instead of ’
... View more