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
17,591 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,230 points
8,860 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
• 11,380 points
10,930 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
• 11,380 points
2,457 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
108,344 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,390 points
4,550 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,300 points
1,641 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP