Member since
08-05-2018
73
Posts
0
Kudos Received
0
Solutions
02-01-2018
10:10 PM
Hi Jay, Can you please help figure out why the Sandbox suddenly won't allow to login to it on port 2222? I was able before, as you suggested above, but now I can't.
... View more
02-01-2018
04:26 PM
Hi rtrivedi, I added the additional code as suggested, but I get the following error: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
... View more
02-01-2018
04:25 PM
Hi rtrivedi, I added the additional code as suggested, but I get the following error: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
... View more
02-01-2018
04:25 PM
Hi rtrivedi, I added the additional code as suggested, but I get the following error: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
... View more
02-01-2018
04:23 PM
Hi rtrivedi, I added the additional code you suggested, however I'm getting the following error: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
... View more
02-01-2018
04:22 PM
Hi rtrivedi I added set hive.cli.print.header=true; However, I getting the following error: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
... View more
02-01-2018
03:03 PM
Hi rtrivedi, The fix you provided worked perfectly. Would it be possible to include the column headings in the output? At the moment, the output looks like the following: \N,1
0,9
1,5159
2,694
3,4540
4,1975
5,2207
6,36
... View more
02-01-2018
10:59 AM
Hi rtrivedi, I'm about to test this out. I will let you know how I get on. Cheers
... View more
01-31-2018
11:39 PM
Hi Sridhar Thanks for reaching out Unfortunately’, I’m a real novice and I don’t understand beeline. I love the fact that I can store the results in multiple formats, however I need to store the results in a destination that is easily accessible. For example, I can access certain directories using a regular ftp client, but I can’t readily access the hdfs dfs directory so I would like to store the results on a local directory like Hadoop/hive/ or any other easily accsssible directory. I hope you can understand me Cheers
... View more
01-31-2018
09:06 PM
Hello Community, The following Hive Script retrieves data from the hdfs dfs drive on hadoop from the directory '/user/hive/geography' I would like to store the results on a local drive called /hadoop/hdfs' Can someone please show me how to modify the script so that it doesn't retrieve and store the results of the query to 'user/hive/geography', but instead stores the results from the query to '/hadoop/hdfs' (or any local drive) The script is as follows: DROP TABLE IF EXISTS HiveSampleIn;
CREATE EXTERNAL TABLE HiveSampleIn
(
anonid int,
eprofileclass int,
fueltypes STRING,
acorn_category int,
acorn_group STRING,
acorn_type int,
nuts4 STRING,
lacode STRING,
nuts1 STRING,
gspgroup STRING,
ldz STRING,
gas_elec STRING,
gas_tout STRING
) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LINES TERMINATED BY '10' STORED AS TEXTFILE LOCATION '/user/hive/geography';
DROP TABLE IF EXISTS HiveSampleOut;
CREATE EXTERNAL TABLE HiveSampleOut
(
acorn_category int,
acorn_categorycount int )
ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LINES TERMINATED BY '10' STORED AS TEXTFILE LOCATION '/user/hive/geography';
INSERT OVERWRITE TABLE HiveSampleOut
Select
acorn_category,
count(*) as acorn_categorycount
FROM HiveSampleIn Group by acorn_category Many thanks
... View more
Labels:
- Labels:
-
Apache Hadoop
-
Apache Hive