phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russell Jurney <russell.jur...@gmail.com>
Subject Re: Phoenix Pig integration
Date Mon, 10 Aug 2015 07:20:23 GMT
There shouldn't be a limitation, no. I've stored to/read from Phoenix
tables from Pig on CDH 5.

Can you paste the error?

On Monday, August 10, 2015, Pariksheet Barapatre <pbarapatre@gmail.com>
wrote:

> Hi All,
>
> I am trying to run Pig script on Phoenix table.
>
> I am using same example given in documentation.
>
> CREATE TABLE HIRES( CLIENTID INTEGER NOT NULL, EMPID INTEGER NOT NULL, NAME VARCHAR CONSTRAINT
pk PRIMARY KEY(CLIENTID,EMPID));
>
>
> raw = LOAD 'hbase://table/HIRES USING
> org.apache.phoenix.pig.PhoenixHBaseLoader('localhost')';
> grpd = GROUP raw BY CLIENTID;
> cnt = FOREACH grpd GENERATE group AS CLIENT,COUNT(raw);
> DUMP cnt;
>
> The code above works without any issue, but if I CREATE HIRES tables with
> SALTs script failed with QueryParse.Error.
>
> Is there any limitation of Pig integration with SALTED table.
>
>
>
> Cheers,
> Pari
>


-- 
Russell Jurney twitter.com/rjurney russell.jurney@gmail.com datasyndrome.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message