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
1,595 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
• 68,860 points
1,527 views
0 votes
3 answers

What is Hive? Is Hive a database?

Hive is a data Warehouse infrastructure/system built ...READ MORE

answered Jul 1, 2019 in Big Data Hadoop by Ved Gupta
8,449 views
0 votes
1 answer

How Impala is fast compared to Hive in terms of query response?

Impala provides faster response as it uses MPP(massively ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by nitinrawat895
• 10,840 points
437 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,840 points
3,887 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,840 points
534 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
20,652 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,290 points
1,459 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
258 views