Member since
02-24-2015
9
Posts
4
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
8460 | 01-29-2016 11:00 AM |
01-29-2016
11:00 AM
1 Kudo
Thanks for the reply Jenny (I've been going nuts with this)! The database list is not populated so there is nothing to select... BUT - clearing the cache solved the issue!
... View more
01-29-2016
08:44 AM
I've been working with the CDH 5.5.0 VM for a couple of weeks. * I started Tutorial number two. * Loaded the data. *Created the tables (in Hive). * Now trying to use Hue Impala to query the tables. Something happened in Hue such that Impala can't seem to load the metadata. In the database frame on the left side it says "The database list cannot be loaded." All Impala queries, even invalidate metadata, return the following error message: AnalysisException: Syntax error in line 1: USE `` ^ Encountered: EMPTY IDENTIFIER Expected: IDENTIFIER CAUSED BY: Exception: Syntax error impala-shell works fine for all queries and commands. It is only Hue that is having the issue. I have done the following: Run invalidate metadata in impala-shell (works fine) Restarted Hue Restarte Impala Restarted the VM several times This guy is having the same issue: http://stackoverflow.com/questions/35018518/impala-query-editor-always-shows-analysisexception Any help would be appreciated as I'm working on a POC to get approval for purchasing Cloudera. Thanks all!
... View more
Labels:
02-24-2015
11:49 AM
1 Kudo
brock, thanks again for the reply. I admit to not being entirely convinced - I don't see why I should have to fiddle with jars to finish configuring a cluster in order to use basic functionality. BUT, I do appreciate your time, and the fact that you validated the feature. v/r, Scott
... View more
02-24-2015
10:45 AM
Thanks for the suggestion. I thought about add jar, but reminding all users to add the jar was problematic, and then getting that solution to work with ODBC had me stumped. I guess my main question is why do we have to do this at all? Since this is fundamental Hive functionality, it would seem like the jar would be available to all nodes. Further, making it available only to the master is a curious configuration. Is there some reason why I would not want this jar in the lib directory all the time? Thanks again!
... View more
02-24-2015
07:02 AM
2 Kudos
I've spent a lot of time over the past week trying to get regex tales to work in Hive. The table would create fine, but whenever I ran a query that required map reduce, the job would blow up. The issue is that for some reason core and task nodes don't have the jar file that contains the org.apache.hadoop.hive.contrib.serde2.RegexSerDe class in the classpath. The same basic issue exists on AWS EMR. I'm not sure if there is an issue with the way I'm using the class or if this is a bug in the configuration. My solution on CDH5 is below. On EMR, I had to create a script to run as a bootstrap action that copied the jar to the appropriate path (needed copy for other jars so decided to go this way). Please comment if you have any suggestions or other solutions. Thanks! Scott Solution: cd /opt/cloudera/parcels/CDH-5.3.1-1.cdh5.3.1.p0.5/lib/hadoop/lib/ ln -s ../../../jars/hive-contrib-0.13.1-cdh5.3.1.jar hive-contrib-0.13.1-cdh5.3.1.jar Sample Create table DDL: CREATE EXTERNAL TABLE TESTDATA ( FIELD1 STRING , FIELD2 STRING , FIELD3 STRING , FIELD4 STRING , FIELD5 STRING , FIELD6 STRING , FIELD7 STRING , FIELD8 STRING , FIELD9 STRING , FIELD10 STRING , FIELD11 STRING , FIELD12 STRING , FIELD13 STRING , FIELD14 STRING , FIELD15 STRING , FIELD16 STRING , FIELD17 STRING , FIELD18 STRING , FIELD19 STRING ) ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe' With SERDEPROPERTIES ( "input.regex"="(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endf\\*+(.*)\\*endr\\*+(.*$)" ) STORED AS TEXTFILE LOCATION '/user/jsperson/testdata/' TBLPROPERTIES("skip.header.line.count"="1", "serialization.null.format"='');
... View more
Labels: