|
|
ranjini.r@... 2013-02-04, 10:28
Hi, Need to create the data as given below in JSON Object and put the data into Hbase table using java ID Address Type Address1 Address2 Address3 1 home x x x office y y y How to put Json object in hbase table. Please guide me Thanks in advance. This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit us at http://www.polarisFT.com
+
ranjini.r@... 2013-02-04, 10:28
I think you can treat id as row key. and address-type/home or address-type/office as column family. each address can be treated as column. The thing is how you can transform your json metadata into Hbase schema information. regards! Yong On Mon, Feb 4, 2013 at 11:28 AM, <[EMAIL PROTECTED]> wrote: > Hi, > > > Need to create the data as given below in JSON Object and put the > data into Hbase table using java > > ID Address Type Address1 Address2 Address3 > > 1 home x x x > office y y y > > > How to put Json object in hbase table. Please guide me > > Thanks in advance. > > > > This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. > > Visit us at http://www.polarisFT.com
+
yonghu 2013-02-04, 16:35
Jean-Marc Spaggiari 2013-02-04, 16:28
Hi Ranjini, You just have to convert your JSon object into a string, and store this string into HBase with puts. You will need to figure the right key based on you use case. 2013/2/4, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Hi, > > > Need to create the data as given below in JSON Object and put the > data into Hbase table using java > > ID Address Type Address1 Address2 Address3 > > 1 home x x x > office y y y > > > How to put Json object in hbase table. Please guide me > > Thanks in advance. > > > > This e-Mail may contain proprietary and confidential information and is sent > for the intended recipient(s) only. If by an addressing or transmission > error this mail has been misdirected to you, you are requested to delete > this mail immediately. You are also hereby notified that any use, any form > of reproduction, dissemination, copying, disclosure, modification, > distribution and/or publication of this e-mail message, contents or its > attachment other than by its intended recipient/s is strictly prohibited. > > Visit us at http://www.polarisFT.com>
+
Jean-Marc Spaggiari 2013-02-04, 16:28
ranjini.r@... 2013-02-04, 10:14
Hi, Need to create JSON Object and put the data into Hbase table. How to but Json object in hbase table. Please guide me to complete the task. Thanks in advance. Regards, Ranjini R BSC-1,Nxt-Lvl 4th Floor East Wing Polaris.FT-Navallur-Chennai Mobile No:9003048194 This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit us at http://www.polarisFT.com
+
ranjini.r@... 2013-02-04, 10:14
Russell Jurney 2013-02-04, 17:13
With Pig, create your object, ToJson it, then store the JSON string to HBase. http://hortonworks.com/blog/jsonize-anything-in-pig-with-tojson/http://pig.apache.org/docs/r0.10.0/api/org/apache/pig/backend/hadoop/hbase/HBaseStorage.htmlRussell Jurney http://datasyndrome.comOn Feb 4, 2013, at 8:48 AM, "[EMAIL PROTECTED]" < [EMAIL PROTECTED]> wrote: Hi, Need to create JSON Object and put the data into Hbase table. How to but Json object in hbase table. Please guide me to complete the task. Thanks in advance. Regards, Ranjini R BSC-1,Nxt-Lvl 4th Floor East Wing Polaris.FT-Navallur-Chennai Mobile No:9003048194 This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit us at http://www.polarisFT.com
+
Russell Jurney 2013-02-04, 17:13
Damien Hardy 2013-02-04, 16:52
Hello, You can take a look at Jaql http://publib.boulder.ibm.com/infocenter/bigins/v1r1/topic/com.ibm.swg.im.infosphere.biginsights.doc/doc/r0057923.htmlCheers, 2013/2/4 <[EMAIL PROTECTED]> > Hi, > > Need to create JSON Object and put the data into Hbase table. > > How to but Json object in hbase table. Please guide me to complete the > task. > > Thanks in advance. > > Regards, > Ranjini R > > BSC-1,Nxt-Lvl 4th Floor East Wing > Polaris.FT-Navallur-Chennai > > Mobile No:9003048194 > > > This e-Mail may contain proprietary and confidential information and is > sent for the intended recipient(s) only. If by an addressing or > transmission error this mail has been misdirected to you, you are requested > to delete this mail immediately. You are also hereby notified that any use, > any form of reproduction, dissemination, copying, disclosure, modification, > distribution and/or publication of this e-mail message, contents or its > attachment other than by its intended recipient/s is strictly prohibited. > > Visit us at http://www.polarisFT.com> -- Damien HARDY
+
Damien Hardy 2013-02-04, 16:52
Dhaval Shah 2013-02-04, 16:50
JSON object is nothing but a String representation.. You can call <json>.toBytes() to get the byte representation and put that into HBase Regards, Dhaval ________________________________ From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Monday, 4 February 2013 5:14 AM Subject: Json+hbase Hi, Need to create JSON Object and put the data into Hbase table. How to but Json object in hbase table. Please guide me to complete the task. Thanks in advance. Regards, Ranjini R BSC-1,Nxt-Lvl 4th Floor East Wing Polaris.FT-Navallur-Chennai Mobile No:9003048194 This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit us at http://www.polarisFT.com
+
Dhaval Shah 2013-02-04, 16:50
|
|