Hive: ParseException line 5:20 missing EOF at '.' near

0 votes

I am getting an error when I run the following code:

hive> create table bought(number INT,price FLOAT,comments STRING) > row format delimited > fields terminated by ',' > lines terminated by '\n' > stored as customers1.txt;
FAILED: ParseException line 5:20 missing EOF at '.' near 'customers1'
Jul 11, 2019 in Big Data Hadoop by Dinesh
2,773 views

1 answer to this question.

0 votes

In the stored as parameter, you have specified the name of your dataset. The dataset name does not have to be specified there. Only the file format should be specified such as textfile. So, your command should be as below,

create table bought(number INT, price FLOAT, comments STRINGS)
row format delimited
fields terminated by','
lines terminated by '\n'
stored as textfile; 
answered Jul 11, 2019 by Kim

Related Questions In Big Data Hadoop

0 votes
1 answer

Hadoop Hive: How to skip the first line of csv while loading in hive table?

You can try this: CREATE TABLE temp ...READ MORE

answered Nov 8, 2018 in Big Data Hadoop by Omkar
• 69,000 points
2,150 views
+1 vote
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,870 points
4,588 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,870 points
652 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
26,068 views
–1 vote
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,310 points
1,723 views
0 votes
1 answer

Hive with JSON: getting EOF exception while querying

You are missing the commas in your ...READ MORE

answered Aug 30, 2018 in Big Data Hadoop by Neha
• 6,280 points
347 views