You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Mohit Chaudhary01 <Mo...@infosys.com> on 2012/12/21 06:34:31 UTC
reg : getting table values in inputFormat in serde
Hi
In serde program I need table properties in inputformat file .
So can anyone please tell me how can I do this?
thanks
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
RE: reg : getting table values in inputFormat in serde
Posted by java8964 java8964 <ja...@hotmail.com>.
Actually I am backing up this question. In additional for that, I wonder if it is possible we can access the table properties from the UDF too.
I also have XML data, but with namespace into it. The XPATH UDF coming from HIVE doesn't support namespace. To support the namespace in XML is simple, just need a NamespaceContextImpl. But the trick part is to having a generic solution, we want some properties can passed to underline InputFormat or xpath_ns UDF, for example, the prefix/URI mapping, or the real class name who implements the NamespaceContext interface. But right now, it is not easy to pass this kind information, even if we define them into the table properties.
Right now, I have to kind of hard-coded into the UDF or InputFormat, instead of providing a generic solution.
Yong
From: Mohit_Chaudhary01@infosys.com
To: user@hive.apache.org
Subject: RE: reg : getting table values in inputFormat in serde
Date: Fri, 21 Dec 2012 11:39:54 +0000
Actually I am storing data from xml file into hive table using serde.
Now I want table properties which I given during table creation in inputformat .
From: Nitin Pawar [mailto:nitinpawar432@gmail.com]
Sent: Friday, December 21, 2012 3:16 PM
To: user@hive.apache.org
Subject: Re: reg : getting table values in inputFormat in serde
What kind of table properties you want to be accessed ? and what you want to achieve from it in serde ?
On Fri, Dec 21, 2012 at 11:04 AM, Mohit Chaudhary01 <Mo...@infosys.com> wrote:
Hi
In serde program I need table properties in inputformat file .
So can anyone please tell me how can I do this?
thanks
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
--
Nitin Pawar
RE: reg : getting table values in inputFormat in serde
Posted by "Connell, Chuck" <Ch...@nuance.com>.
So you have an XML serde? Did you write it? How can others download it?
Chuck
________________________________
From: Mohit Chaudhary01 [Mohit_Chaudhary01@infosys.com]
Sent: Friday, December 21, 2012 6:39 AM
To: user@hive.apache.org
Subject: RE: reg : getting table values in inputFormat in serde
Actually I am storing data from xml file into hive table using serde.
Now I want table properties which I given during table creation in inputformat .
From: Nitin Pawar [mailto:nitinpawar432@gmail.com]
Sent: Friday, December 21, 2012 3:16 PM
To: user@hive.apache.org
Subject: Re: reg : getting table values in inputFormat in serde
What kind of table properties you want to be accessed ? and what you want to achieve from it in serde ?
On Fri, Dec 21, 2012 at 11:04 AM, Mohit Chaudhary01 <Mo...@infosys.com>> wrote:
Hi
In serde program I need table properties in inputformat file .
So can anyone please tell me how can I do this?
thanks
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
--
Nitin Pawar
RE: reg : getting table values in inputFormat in serde
Posted by Mohit Chaudhary01 <Mo...@infosys.com>.
Actually I am storing data from xml file into hive table using serde.
Now I want table properties which I given during table creation in inputformat .
From: Nitin Pawar [mailto:nitinpawar432@gmail.com]
Sent: Friday, December 21, 2012 3:16 PM
To: user@hive.apache.org
Subject: Re: reg : getting table values in inputFormat in serde
What kind of table properties you want to be accessed ? and what you want to achieve from it in serde ?
On Fri, Dec 21, 2012 at 11:04 AM, Mohit Chaudhary01 <Mo...@infosys.com>> wrote:
Hi
In serde program I need table properties in inputformat file .
So can anyone please tell me how can I do this?
thanks
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
--
Nitin Pawar
Re: reg : getting table values in inputFormat in serde
Posted by Nitin Pawar <ni...@gmail.com>.
What kind of table properties you want to be accessed ? and what you want
to achieve from it in serde ?
On Fri, Dec 21, 2012 at 11:04 AM, Mohit Chaudhary01 <
Mohit_Chaudhary01@infosys.com> wrote:
> Hi ****
>
> In serde program I need table properties in inputformat file . ****
>
> So can anyone please tell me how can I do this?****
>
> ** **
>
> ** **
>
> thanks****
>
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
> for the use of the addressee(s). If you are not the intended recipient, please
> notify the sender by e-mail and delete the original message. Further, you are not
> to copy, disclose, or distribute this e-mail or its contents to any other person and
> any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
> every reasonable precaution to minimize this risk, but is not liable for any damage
> you may sustain as a result of any virus in this e-mail. You should carry out your
> own virus checks before opening the e-mail or attachment. Infosys reserves the
> right to monitor and review the content of all messages sent to or from this e-mail
> address. Messages sent to or from this e-mail address may be stored on the
> Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
>
>
--
Nitin Pawar