Re: Queries to custom serde return 'NULL' until hiveserver2 restart

2018-09-11 Thread Jason Gerlowski
loader? Or am I misunderstanding the lifecycle/purpose of UDFClassLoader instances? Is there a more robust way to cast Writable instances in a custom SerDe implementation? Thanks in advance for any clarification you can give. Best, Jason On Mon, Sep 10, 2018 at 10:37 PM Gopal Vijayaraghavan

Re: Queries to custom serde return 'NULL' until hiveserver2 restart

2018-09-10 Thread Gopal Vijayaraghavan
>query the external table using HiveCLI (e.g. SELECT * FROM >my_external_table), HiveCLI prints out a table with the correct If the error is always on a "select *", then the issue might be the SerDe's handling of included columns. Check what you get for colNames = Arrays.asList(tblPr

Queries to custom serde return 'NULL' until hiveserver2 restart

2018-09-10 Thread Jason Gerlowski
Hi all, Hive Version: 3.0.0 Hadoop Version: 3.1.0 Tez Version: 0.9.1 I help to maintain a Hive SerDe connecting Hive to Apache Solr. We've let our custom SerDe lag quite a bit behind in Hive releases (1.2.1), but we've recently started updating the code to work with Hive 3.0.0. Afte

hive on tez serialization and deserialization( custom Serde initialize() just called one time in hive client, when split in AM)

2016-01-21 Thread LLBian
) . 18 more - I know that, it is custome storageHandler about hive, but, now, my questions are about how the two(tez&hive) to work together: There, NBHBaseSerde is a custom S

Re: Hive On Spark - Using custom SerDe

2015-11-16 Thread Jimmy Xiang
>> >> On Mon, Nov 16, 2015 at 1:44 AM, Daniel Haviv < >> daniel.ha...@veracity-group.com> wrote: >> >>> Hi, >>> We have a custom SerDe we would like to use with Hive on Spark but I'm >>> not sure how to. >>> The error messa

Re: Hive On Spark - Using custom SerDe

2015-11-16 Thread Daniel Haviv
e your jar is in ""hive.aux.jars.path". > > Thanks, > Jimmy > > On Mon, Nov 16, 2015 at 1:44 AM, Daniel Haviv < > daniel.ha...@veracity-group.com> wrote: > >> Hi, >> We have a custom SerDe we would like to use with Hive on Spark but I'm >

Re: Hive On Spark - Using custom SerDe

2015-11-16 Thread Jimmy Xiang
Have you add your class to "spark.kryo.classesToRegister"? You also need to make sure your jar is in ""hive.aux.jars.path". Thanks, Jimmy On Mon, Nov 16, 2015 at 1:44 AM, Daniel Haviv < daniel.ha...@veracity-group.com> wrote: > Hi, > We have a custom Se

Hive On Spark - Using custom SerDe

2015-11-16 Thread Daniel Haviv
Hi, We have a custom SerDe we would like to use with Hive on Spark but I'm not sure how to. The error messages are pretty clear about the fact that it can't find my SerDE's class: Caused by: org.apache.hive.com.esotericsoftware.kryo.KryoException: Unabl

Re: Custom SerDe: Initialize() passes a null configuration to my Custom SerDe

2013-10-14 Thread Rui Martins
Edward Capriolo wrote: > Have you seen? > > https://github.com/edwardcapriolo/hive-protobuf/ > > > On Mon, Oct 14, 2013 at 8:16 AM, Rui Martins wrote: > >> Hi hive users, >> >> I am writing a custom SerDe that loads any protocol buffer generated >> class.

Re: Custom SerDe: Initialize() passes a null configuration to my Custom SerDe

2013-10-14 Thread Edward Capriolo
Have you seen? https://github.com/edwardcapriolo/hive-protobuf/ On Mon, Oct 14, 2013 at 8:16 AM, Rui Martins wrote: > Hi hive users, > > I am writing a custom SerDe that loads any protocol buffer generated > class. > For flexibility this class can live in a jar external to

Re: Custom SerDe: Initialize() passes a null configuration to my Custom SerDe

2013-10-14 Thread Hari Subramaniyan
ks, > > Yin > > > On Mon, Oct 14, 2013 at 8:20 AM, Rui Martins wrote: > > > +dev hive mailing list that I should've mailed in the first place. > > > > (apologies for the spam) > > > > > > On Mon, Oct 14, 2013 at 1:16 PM, Rui Martins wrote: &g

Re: Custom SerDe: Initialize() passes a null configuration to my Custom SerDe

2013-10-14 Thread Yin Huai
wrote: > +dev hive mailing list that I should've mailed in the first place. > > (apologies for the spam) > > > On Mon, Oct 14, 2013 at 1:16 PM, Rui Martins wrote: > >> Hi hive users, >> >> I am writing a custom SerDe that loads any protocol buffer generated

Re: Custom SerDe: Initialize() passes a null configuration to my Custom SerDe

2013-10-14 Thread Rui Martins
+dev hive mailing list that I should've mailed in the first place. (apologies for the spam) On Mon, Oct 14, 2013 at 1:16 PM, Rui Martins wrote: > Hi hive users, > > I am writing a custom SerDe that loads any protocol buffer generated > class. > For flexibility this cla

Custom SerDe: Initialize() passes a null configuration to my Custom SerDe

2013-10-14 Thread Rui Martins
Hi hive users, I am writing a custom SerDe that loads any protocol buffer generated class. For flexibility this class can live in a jar external to the SerDe's jar and then I just use the Hive Configuration class passed in the initiliaze to dynamically load it and set the schema for the

Re: Starting with Hive - writing custom SerDe

2012-11-29 Thread Dean Wampler
t; ** ** > > *From:* Connell, Chuck [mailto:chuck.conn...@nuance.com] > *Sent:* Thursday, November 29, 2012 9:51 AM > *To:* user@hive.apache.org > *Subject:* RE: Starting with Hive - writing custom SerDe > > ** ** > > You might save yourself a lot of work by pre-processing the data, be

RE: Starting with Hive - writing custom SerDe

2012-11-29 Thread Connell, Chuck
I meant PLAIN tab-separated text. From: Connell, Chuck [mailto:chuck.conn...@nuance.com] Sent: Thursday, November 29, 2012 9:51 AM To: user@hive.apache.org Subject: RE: Starting with Hive - writing custom SerDe You might save yourself a lot of work by pre-processing the data, before putting it

RE: Starting with Hive - writing custom SerDe

2012-11-29 Thread Connell, Chuck
You might save yourself a lot of work by pre-processing the data, before putting it into Hive. A Python script should be able to find all the fields, and change the data to plan tab-separated text. This will load directly into Hive, and removes the need to write a custom SerDe. Chuck Connell

Starting with Hive - writing custom SerDe

2012-11-29 Thread Fernando Andrés Doglio Turissini
es used as separators)... So after looking around for a while, I found that I have to write a custom SerDe in order to tell Hive how to parse those lines. I've also found that I can only write them using Java (unlike UDFs for pig for instance, which can be written using other languages), is this corre

Custom Serde/Connector Null Pointer Exception

2012-10-13 Thread John Omernik
Greetings all. I am not sure if this is a hive issue or a custom serde issue. So I will ask in both places. I am trying to use the mongodb connection written by yc-huang. This could have great potential with our data. THe link is here. https://github.com/yc-huang/Hive-mongo I followed

Re: Custom SerDe -- tracking down stack trace

2012-02-22 Thread Evan Pollan
ently based on the query plan? From: Evan Pollan mailto:evan.pol...@bazaarvoice.com>> Reply-To: mailto:user@hive.apache.org>> Date: Wed, 22 Feb 2012 12:28:26 + To: "user@hive.apache.org<mailto:user@hive.apache.org>" mailto:user@hive.apache.org>> Subject: Re: Cu

Re: Custom SerDe -- tracking down stack trace

2012-02-22 Thread Evan Pollan
/tmp it is! My bad — it was the one obvious place I omitted from my find/grep statement. Thanks! From: Matthew Byrd mailto:mb...@acunu.com>> Reply-To: mailto:user@hive.apache.org>> Date: Wed, 22 Feb 2012 11:54:09 + To: mailto:user@hive.apache.org>> Subject: Re: Custom

Re: Custom SerDe -- tracking down stack trace

2012-02-22 Thread Matthew Byrd
ble where ArrivalDate="2012-02-01"' > > But, this fails: 'select * from table where ArrivalDate="test"' > > Does this make sense to anybody? > > > > From: Evan Pollan > Reply-To: > Date: Tue, 21 Feb 2012 20:56:07 + > To: &qu

Re: Custom SerDe -- tracking down stack trace

2012-02-21 Thread Evan Pollan
an mailto:evan.pol...@bazaarvoice.com>> Reply-To: mailto:user@hive.apache.org>> Date: Tue, 21 Feb 2012 20:56:07 + To: "user@hive.apache.org<mailto:user@hive.apache.org>" mailto:user@hive.apache.org>> Subject: Custom SerDe -- tracking down stack trace I hav

Custom SerDe -- tracking down stack trace

2012-02-21 Thread Evan Pollan
I have a custom SerDe that's initializing properly and works on one data set. I built it to adapt to a couple of different data formats, though, and it's choking on a different data set (different partitions in the same table). A null pointer exception is being thrown on deseriali

Re: Custom Serde with thorn

2011-09-07 Thread Jasper Knulst
have you tried? 2011/5/9 Jasper Knulst > Hi Ankit, > > > I got this in my java mapper code > > String oldSeperator = "�"; //the thorn as java sees it > String newSeperator = "~"; > > In Eclipse it shows as �, which is the standard java way of saying "I don't > know this multibyte character". > >

Re: Custom Serde with thorn

2011-05-09 Thread Jasper Knulst
Hi Ankit, I got this in my java mapper code String oldSeperator = "�"; //the thorn as java sees it String newSeperator = "~"; In Eclipse it shows as �, which is the standard java way of saying "I don't know this multibyte character". When you copy paste this � to the linux shell it depicts as

Re: Custom Serde with thorn

2011-05-09 Thread ankit bhatnagar
Hi Jasper, could you please share your MR program. I am not able to grab this character Ankit

Re: Custom Serde with thorn

2011-05-09 Thread Jasper Knulst
Hi Ankit, It all depends on your environment and locale en encoding. This proved to work in my case, but I believe to have seen your characters as well, but after all it is not your browser that has to do the work and interpret the multibyte character. That is the main problem with the thorn; ever

Re: Custom Serde with thorn

2011-05-09 Thread ankit bhatnagar
Hi Jasper, How did you find - 'þ' My browser shows this - � Ankit

Re: Custom Serde with thorn

2011-05-08 Thread Jasper Knulst
Hi Ankit, I know your problem because I had to deal with a thorn 'þ' separated file too. Hive ,so far, cannot handle multibyte separators so I turned to the custom SerDe option myself. If you manage to capture the 'þ' in the regex you could try I trie

Fwd: Custom Serde with thorn

2011-05-07 Thread ankit bhatnagar
Hi I am facing a weird issue with the file parsing. My log files have a thorn 'þ' as separator. I tried writing a test case for deserializer and kind of confused by the fact it works fine as I pass the line to the deserializer, however when i run it on hive the line is not split into columns and

Custom Serde with thorn

2011-05-07 Thread ankit bhatnagar
Hi I am facing a weird issue with the file parsing. My log files have a thorn 'þ' as separator. I tried writing a test case for deserializer and kind of confused by the fact it works fine as I pass the line to the deserializer, however when i run it on hive the line is not split into columns and

Re: Custom SerDe Question

2011-01-28 Thread phil young
textfile and using my custom serde so it had a format line > of: > > > > ROW FORMAT SERDE ‘org.myorg.hadoop.hive.udf.MySerDe’ STORED AS textfile > > > > Then I loaded a gzipped file using LOAD DATA LOCAL INPATH ‘path.gz’ INTO > TABLE mytable and it worked as expected, ie

RE: Custom SerDe Question

2011-01-28 Thread Christopher, Pat
Not sure what I did wrong the first time but I tried to create a table with stored type of textfile and using my custom serde so it had a format line of: ROW FORMAT SERDE 'org.myorg.hadoop.hive.udf.MySerDe' STORED AS textfile Then I loaded a gzipped file using LOAD DATA LOCAL INPAT

Re: Custom SerDe

2011-01-28 Thread phil young
I found the source code is very helpful for this. There's a custom serde in the source, with a test case you can review, which really speeds up development of your SerDe. org.apache.hadoop.hive.contrib.serde2.TestRegexSerDe One thing to watch out for though, is that the framework will

Re: Custom Serde

2011-01-28 Thread phil young
bhatnagar wrote: > Hi All, > > Whats the best way to add custom serde jar. > > looks like add jar says added successfully and I am able to list that jar > in hive interface > > However Create table fails to find the class. > > Thanks > Ankit >

Re: Custom SerDe Question

2011-01-28 Thread phil young
Hi, >> >> I’ve written a SerDe and I’d like it to be able handle compressed data >> (gzip). Hadoop detects and decompresses on the fly so if you have a >> compressed data set and you don’t need to perform any custom interpretation >> of it as you go, hadoop and hive

Re: Custom SerDe Question

2011-01-28 Thread phil young
adoop and hive will handle it. Is there a way to get Hive > to notice the data is compressed, decompress it then push it through the > custom SerDe? Or will I have to either > > a. add some decompression logic to my SerDe (possibly impossible) > > b. decompress the da

Custom SerDe Question

2011-01-28 Thread Christopher, Pat
re a way to get Hive to notice the data is compressed, decompress it then push it through the custom SerDe? Or will I have to either a. add some decompression logic to my SerDe (possibly impossible) b. decompress the data before pushing it into a table with my SerDe Thanks! Pat

Custom Serde

2011-01-24 Thread ankit bhatnagar
Hi All, Whats the best way to add custom serde jar. looks like add jar says added successfully and I am able to list that jar in hive interface However Create table fails to find the class. Thanks Ankit

Custom SerDe

2011-01-21 Thread ankit bhatnagar
info - but my question will be how is this initialize() method getting invoked with Custom SerDe while executing query. create table my_table(a string, b string, ...) row format serde '..CustomSerde' stored as textfile ; Thanks -Ankit