Impala not working on Hbase Table - hadoop

Hi I have a Hbase table and I can query the same with Hive.
When I try to access the same from impala (either from HUE or shell) I get the following error :
Query: select * from clickview
ERROR: RuntimeException: couldn't retrieve HBase table (clickviewtab) info:
Enable/Disable failed
CDH version - cdh5.4.2
Impala Version - 2.2.0
Hbase version - 1.0.0-cdh5.4.2
All Hbase , impala and hive are part of the CDH 5.4.2 release and been installed as package.

You have to enable the capability for Impala to query HBase Tables in the Impala Configuration.
In Cloudera Magaer, go to the configuration options, search for hbase and then clic the radio button on HBase Service to enable it.

Related

problem with connect presto to hive-hadoop3

I have hadoop 3.1.2 and hive 3.1.2 on a cluster and I want to connect to hive with presto-server-0.265.1.
I have just one catalog file in /opt/presto/etc/catalog as hive.properties here is:
connector.name=hive-hadoop2
hive.metastore.uri=thrift://192.168.49.13:9083
The presto service run but it can not connect to hive because I use hadoop3 and when I change hive.properties,presto service can not run.
how can I connect to hadoop3?
Update:
it wasn't about hadoop. hive metastore was not installed correctly so presto had problem to connect hive metastore

Error: Could not find or load main class backup

I have setup a Hbase on top of hadoop in my linux system. I creates a sample table in hbase shell and its working fine. However, when I try to run backup command I am getting an error in the terminal as follows:
> hbase backup create full hdfs://localhost:8020/data/backup
> Error: Could not find or load main class backup
OR
> hbase backup help
> Error: Could not find or load main class backup
I have installed apache Hadoop 2.7.3 and HBase 2.1.4. The Hbase is of Apache and not of Cloudera or Hortonworks.
I see that in the docs (http://hbase.apache.org/book.html#_backup_and_restore_commands), hbase command can be used. Please help here.

Unable to start hive in terminal

I am using hive for querying and data processing purpose in my hadoop main node,but I am not able to start hive in terminal and way taking too much time and not starting as show below.
#hive
Logging initialized using configuration in file:/etc/hive/2.3.4.7-4/0/hive-log4j.properties
you can lookup for the actual problem in HIVE
Hive uses log4j for logging. By default logs are not emitted to the console by the CLI. The default logging level is WARN for Hive releases prior to 0.13.0. Starting with Hive 0.13.0, the default logging level is INFO.
The logs are stored in the directory /tmp/<user.name>:
/tmp/<user.name>/hive.log
Note: In local mode, prior to Hive 0.13.0 the log file name was ".log" instead of "hive.log".

Unable to use Cassandra from Presto

I have setup presto 0.76, Cassandra 2.1.2 and created a mykeyspace and a table to it. I started both the Cassandra daemons and Presto daemons. When I try to query Cassandra using presto CLI it returns
presto:mykeyspace> select * from userinfo;
Query 20141216_181006_00021_me4u4 failed: replicate_on_write is not a column defined in this metadata
So is there any way to get over it?
Use latest version 0.88 with fixes for cassandra, http://prestodb.io/docs/current/release/release-0.88.html

host:port pair: PBUF

Versions that I'm using, Hadoop 2.2.0 and HBase 0.96.1.1, Hive 0.12.0 in all nodes
Anyone can explain this error that is giving me?
hive> CREATE EXTERNAL TABLE
test(key string, values map<string, int>)
STORED BY
'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES (
"hbase.columns.mapping" = ":key,values:"
TBLPROPERTIES (
"hbase.table.name" = "test"
);
FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.IllegalArgumentException:
Not a host:port pair: PBUF
hadoop-master�����޹(
The only configuration that I made from Hive is this:
<name>mapred.job.tracker</name>
<value>local</value>
</property>
This is most probably due to version mismatch between HBase server and the HBase client jars shipped with Hive 0.12
To confirm, please do cd <hive_directory>/lib and ls hbase*.jar. The version of jars in hive lib should match with your hbase server installation.
If the versions are different, you can try copying the hbase jars from your hbase installation to hive lib directory.
Its a version problem
Used hadoop 2.2.0 + Hive 1.2.1 + HBASE 0.98.15
then updated hive lib jars for hbase compatibility and resolve the issue.

Resources