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 in Big Data Hadoop by Dinesh
842 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 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
• 67,660 points
1,171 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 in Big Data Hadoop by Ved Gupta
7,067 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,730 points
355 views
0 votes
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,730 points
3,379 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,730 points
407 views
0 votes
10 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
16,844 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,260 points
1,231 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
193 views