kudu-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberta Marton <roberta.mar...@esgyn.com>
Subject RE: Kudu installation
Date Tue, 07 Jun 2016 21:34:38 GMT
Thanks that worked.

When I read the documentation, I got the impression that the URL was
required.   The documentation just stated: the list of Kudu masters Impala
should communicate with.



  Roberta



*From:* Dan Burkert [mailto:dan@cloudera.com]
*Sent:* Tuesday, June 7, 2016 2:26 PM
*To:* user@kudu.incubator.apache.org
*Subject:* Re: Kudu installation



Also, the default master RPC port is 7051, so you probably want to be using
that.  8051 is the http port, which is not suitable.  Per the docs:



CREATE TABLE my_first_table ( id BIGINT, name STRING ) DISTRIBUTE BY HASH
(id) INTO 16 BUCKETS TBLPROPERTIES( 'storage_handler' =
'com.cloudera.kudu.hive.KuduStorageHandler', 'kudu.table_name' =
'my_first_table', 'kudu.master_addresses' = 'kudu-master.example.com:7051',
'kudu.key_columns' = 'id' );



- Dan



On Tue, Jun 7, 2016 at 2:18 PM, David Alves <davidralves@gmail.com> wrote:

Hi Roberta



  The master address in the create table statement should be in the format:
host:port

  So it should be:

  ...

  'kudu.master_addresses' = '<my_node_ip>:8051',

  ...



  Not the http url you currently have.



Best

David



On Tue, Jun 7, 2016 at 2:14 PM, Roberta Marton <roberta.marton@esgyn.com>
wrote:

I copied it from the installation guide:

create TABLE my_first_table
(
id BIGINT,
name STRING
)
DISTRIBUTE BY HASH (id) INTO 16 BUCKETS
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'my_first_table',
'kudu.master_addresses' = 'http://<my node>:8051/masters',
'kudu.key_columns' = 'id'
);


   Roberta

-----Original Message-----
From: Adar Dembo [mailto:adar@cloudera.com]

Sent: Tuesday, June 7, 2016 2:08 PM
To: user@kudu.incubator.apache.org
Subject: Re: Kudu installation

Hmm, could you share your Impala CREATE TABLE statement?


On Tue, Jun 7, 2016 at 2:03 PM, Roberta Marton <roberta.marton@esgyn.com>
wrote:
> Thanks!  I will check out the examples.
>
> I have installed both Kudu and Impala-kudu and am trying to create a
> table though Impala.
> I verified that Impala-kudu is setup by running the select statement
> suggested on the installation page.
>
> When  I try to create a table, it is complaining that it can't find my
> master.
>
> ERROR:
> ImpalaRuntimeException: Error creating Kudu table CAUSED BY:
> NonRecoverableException: Couldn't find a valid master in
> ([http://<master host>:8051/masters]), exceptions:
> [org.kududb.client.NonRecoverableException: Couldn't resolve this
> master's address [http://<master host>:8051/masters]]
>
> I can go to http://<master host>:8051/masters  and see master details.
> I am missing something in the configuration?
>
>    Roberta
>
> -----Original Message-----
> From: Adar Dembo [mailto:adar@cloudera.com]
> Sent: Tuesday, June 7, 2016 1:32 PM
> To: user@kudu.incubator.apache.org
> Cc: user@kudu.apache.org
> Subject: Re: Kudu installation
>
> Hi Roberta,
>
> For the foreseeable future you still need to download the special
> Impala Kudu.
>
> As for C++ API examples, check out this:
> https://git-wip-us.apache.org/repos/asf?p=incubator-kudu.git;a=blob;f=
> src/kudu/client/samples/sample.cc;h=43678221e30c5b44b06eae3298290192c5
> ae42e9;hb=refs/heads/master
>
> On Tue, Jun 7, 2016 at 1:25 PM, Roberta Marton
> <roberta.marton@esgyn.com>
> wrote:
>> I am installing apache kudu to try it out.
>>
>> The installation instructions state the following:
>>
>>
>>
>> Apache Kudu has tight integration with Apache Impala (incubating),
>> allowing you to use Impala to insert, query, update, and delete data
>> from Kudu tablets using Impala's SQL syntax, as an alternative to
>> using the Kudu APIs to build a custom Kudu application. In addition,
>> you can use JDBC or ODBC to connect existing or new applications
>> written in any language, framework, or business intelligence tool to
>> your Kudu data, using Impala as the broker.
>>
>> This integration relies on features that released versions of Impala
>> do not have yet, as of Impala 2.3, which is expected to ship in CDH
>> 5.5. In the interim, you need to install a fork of Impala, which this
>> document will refer to as Impala_Kudu.
>>
>>
>>
>> I have CDH 5.7 installed, does it contain the necessary changes for
>> Impala or do I still need to download impala-kudu.
>>
>>
>>
>> Also, do you have any example on how to use c++ api?
>>
>>
>>
>>    Thanks
>>
>>     Roberta

Mime
View raw message