You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by unmesha sreeveni <un...@gmail.com> on 2013/12/30 04:56:46 UTC

conf.set() and conf.get()

I want to get an object value from Driver to mapper.
Am i able to store an object value using conf.set. In order to access the
same value from the driver?


-- 
*Thanks & Regards*

Unmesha Sreeveni U.B

Re:conf.set() and conf.get()

Posted by 小网客 <sm...@foxmail.com>.
json string to java object and then java object to json string
then 
conf.set("yourkey",jsonStr);


------------------
---------------------------------------------
BestWishes!
Blog:http://snv.iteye.com/
Email:1134687142@qq.com
 

 




------------------ Original ------------------
From:  "unmesha sreeveni";<un...@gmail.com>;
Date:  Mon, Dec 30, 2013 12:26 PM
To:  "User Hadoop"<us...@hadoop.apache.org>; 

Subject:  conf.set() and conf.get()



I want to get an object value from Driver to mapper.
Am i able to store an object value using conf.set. In order to access the same value from the driver?
 



-- 
Thanks & Regards 

Unmesha Sreeveni U.B

Re:conf.set() and conf.get()

Posted by 小网客 <sm...@foxmail.com>.
json string to java object and then java object to json string
then 
conf.set("yourkey",jsonStr);


------------------
---------------------------------------------
BestWishes!
Blog:http://snv.iteye.com/
Email:1134687142@qq.com
 

 




------------------ Original ------------------
From:  "unmesha sreeveni";<un...@gmail.com>;
Date:  Mon, Dec 30, 2013 12:26 PM
To:  "User Hadoop"<us...@hadoop.apache.org>; 

Subject:  conf.set() and conf.get()



I want to get an object value from Driver to mapper.
Am i able to store an object value using conf.set. In order to access the same value from the driver?
 



-- 
Thanks & Regards 

Unmesha Sreeveni U.B

Re: conf.set() and conf.get()

Posted by Chris Embree <ce...@gmail.com>.
Ignorant question:  Did this just devolve into a java discussion?

On 12/30/13, unmesha sreeveni <un...@gmail.com> wrote:
> but i need to convert it back to object of the same class.
> If i am converting it to string will it be possible?
>
>
> On Mon, Dec 30, 2013 at 11:16 AM, Harsh J <ha...@cloudera.com> wrote:
>
>> If you can store your object in a string format, you should be able to
>> use Configuration to do so, and I would advise using serialised files
>> via DistributedCache if it is larger in size, such as 5+ MB.
>>
>> On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com>
>> wrote:
>> > I want to get an object value from Driver to mapper.
>> > Am i able to store an object value using conf.set. In order to access
>> > the
>> > same value from the driver?
>> >
>> >
>> > --
>> > Thanks & Regards
>> >
>> > Unmesha Sreeveni U.B
>> >
>> >
>>
>>
>>
>> --
>> Harsh J
>>
>
>
>
> --
> *Thanks & Regards*
>
> Unmesha Sreeveni U.B
>
> *Junior Developer*
> http://www.unmeshasreeveni.blogspot.in/
>

Re: conf.set() and conf.get()

Posted by Chris Embree <ce...@gmail.com>.
Ignorant question:  Did this just devolve into a java discussion?

On 12/30/13, unmesha sreeveni <un...@gmail.com> wrote:
> but i need to convert it back to object of the same class.
> If i am converting it to string will it be possible?
>
>
> On Mon, Dec 30, 2013 at 11:16 AM, Harsh J <ha...@cloudera.com> wrote:
>
>> If you can store your object in a string format, you should be able to
>> use Configuration to do so, and I would advise using serialised files
>> via DistributedCache if it is larger in size, such as 5+ MB.
>>
>> On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com>
>> wrote:
>> > I want to get an object value from Driver to mapper.
>> > Am i able to store an object value using conf.set. In order to access
>> > the
>> > same value from the driver?
>> >
>> >
>> > --
>> > Thanks & Regards
>> >
>> > Unmesha Sreeveni U.B
>> >
>> >
>>
>>
>>
>> --
>> Harsh J
>>
>
>
>
> --
> *Thanks & Regards*
>
> Unmesha Sreeveni U.B
>
> *Junior Developer*
> http://www.unmeshasreeveni.blogspot.in/
>

Re: conf.set() and conf.get()

Posted by Chris Embree <ce...@gmail.com>.
Ignorant question:  Did this just devolve into a java discussion?

On 12/30/13, unmesha sreeveni <un...@gmail.com> wrote:
> but i need to convert it back to object of the same class.
> If i am converting it to string will it be possible?
>
>
> On Mon, Dec 30, 2013 at 11:16 AM, Harsh J <ha...@cloudera.com> wrote:
>
>> If you can store your object in a string format, you should be able to
>> use Configuration to do so, and I would advise using serialised files
>> via DistributedCache if it is larger in size, such as 5+ MB.
>>
>> On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com>
>> wrote:
>> > I want to get an object value from Driver to mapper.
>> > Am i able to store an object value using conf.set. In order to access
>> > the
>> > same value from the driver?
>> >
>> >
>> > --
>> > Thanks & Regards
>> >
>> > Unmesha Sreeveni U.B
>> >
>> >
>>
>>
>>
>> --
>> Harsh J
>>
>
>
>
> --
> *Thanks & Regards*
>
> Unmesha Sreeveni U.B
>
> *Junior Developer*
> http://www.unmeshasreeveni.blogspot.in/
>

Re: conf.set() and conf.get()

Posted by Chris Embree <ce...@gmail.com>.
Ignorant question:  Did this just devolve into a java discussion?

On 12/30/13, unmesha sreeveni <un...@gmail.com> wrote:
> but i need to convert it back to object of the same class.
> If i am converting it to string will it be possible?
>
>
> On Mon, Dec 30, 2013 at 11:16 AM, Harsh J <ha...@cloudera.com> wrote:
>
>> If you can store your object in a string format, you should be able to
>> use Configuration to do so, and I would advise using serialised files
>> via DistributedCache if it is larger in size, such as 5+ MB.
>>
>> On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com>
>> wrote:
>> > I want to get an object value from Driver to mapper.
>> > Am i able to store an object value using conf.set. In order to access
>> > the
>> > same value from the driver?
>> >
>> >
>> > --
>> > Thanks & Regards
>> >
>> > Unmesha Sreeveni U.B
>> >
>> >
>>
>>
>>
>> --
>> Harsh J
>>
>
>
>
> --
> *Thanks & Regards*
>
> Unmesha Sreeveni U.B
>
> *Junior Developer*
> http://www.unmeshasreeveni.blogspot.in/
>

Re: conf.set() and conf.get()

Posted by unmesha sreeveni <un...@gmail.com>.
but i need to convert it back to object of the same class.
If i am converting it to string will it be possible?


On Mon, Dec 30, 2013 at 11:16 AM, Harsh J <ha...@cloudera.com> wrote:

> If you can store your object in a string format, you should be able to
> use Configuration to do so, and I would advise using serialised files
> via DistributedCache if it is larger in size, such as 5+ MB.
>
> On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com>
> wrote:
> > I want to get an object value from Driver to mapper.
> > Am i able to store an object value using conf.set. In order to access the
> > same value from the driver?
> >
> >
> > --
> > Thanks & Regards
> >
> > Unmesha Sreeveni U.B
> >
> >
>
>
>
> --
> Harsh J
>



-- 
*Thanks & Regards*

Unmesha Sreeveni U.B

*Junior Developer*
http://www.unmeshasreeveni.blogspot.in/

Re: conf.set() and conf.get()

Posted by unmesha sreeveni <un...@gmail.com>.
but i need to convert it back to object of the same class.
If i am converting it to string will it be possible?


On Mon, Dec 30, 2013 at 11:16 AM, Harsh J <ha...@cloudera.com> wrote:

> If you can store your object in a string format, you should be able to
> use Configuration to do so, and I would advise using serialised files
> via DistributedCache if it is larger in size, such as 5+ MB.
>
> On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com>
> wrote:
> > I want to get an object value from Driver to mapper.
> > Am i able to store an object value using conf.set. In order to access the
> > same value from the driver?
> >
> >
> > --
> > Thanks & Regards
> >
> > Unmesha Sreeveni U.B
> >
> >
>
>
>
> --
> Harsh J
>



-- 
*Thanks & Regards*

Unmesha Sreeveni U.B

*Junior Developer*
http://www.unmeshasreeveni.blogspot.in/

Re: conf.set() and conf.get()

Posted by unmesha sreeveni <un...@gmail.com>.
but i need to convert it back to object of the same class.
If i am converting it to string will it be possible?


On Mon, Dec 30, 2013 at 11:16 AM, Harsh J <ha...@cloudera.com> wrote:

> If you can store your object in a string format, you should be able to
> use Configuration to do so, and I would advise using serialised files
> via DistributedCache if it is larger in size, such as 5+ MB.
>
> On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com>
> wrote:
> > I want to get an object value from Driver to mapper.
> > Am i able to store an object value using conf.set. In order to access the
> > same value from the driver?
> >
> >
> > --
> > Thanks & Regards
> >
> > Unmesha Sreeveni U.B
> >
> >
>
>
>
> --
> Harsh J
>



-- 
*Thanks & Regards*

Unmesha Sreeveni U.B

*Junior Developer*
http://www.unmeshasreeveni.blogspot.in/

Re: conf.set() and conf.get()

Posted by unmesha sreeveni <un...@gmail.com>.
but i need to convert it back to object of the same class.
If i am converting it to string will it be possible?


On Mon, Dec 30, 2013 at 11:16 AM, Harsh J <ha...@cloudera.com> wrote:

> If you can store your object in a string format, you should be able to
> use Configuration to do so, and I would advise using serialised files
> via DistributedCache if it is larger in size, such as 5+ MB.
>
> On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com>
> wrote:
> > I want to get an object value from Driver to mapper.
> > Am i able to store an object value using conf.set. In order to access the
> > same value from the driver?
> >
> >
> > --
> > Thanks & Regards
> >
> > Unmesha Sreeveni U.B
> >
> >
>
>
>
> --
> Harsh J
>



-- 
*Thanks & Regards*

Unmesha Sreeveni U.B

*Junior Developer*
http://www.unmeshasreeveni.blogspot.in/

Re: conf.set() and conf.get()

Posted by Harsh J <ha...@cloudera.com>.
If you can store your object in a string format, you should be able to
use Configuration to do so, and I would advise using serialised files
via DistributedCache if it is larger in size, such as 5+ MB.

On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com> wrote:
> I want to get an object value from Driver to mapper.
> Am i able to store an object value using conf.set. In order to access the
> same value from the driver?
>
>
> --
> Thanks & Regards
>
> Unmesha Sreeveni U.B
>
>



-- 
Harsh J

Re: conf.set() and conf.get()

Posted by Harsh J <ha...@cloudera.com>.
If you can store your object in a string format, you should be able to
use Configuration to do so, and I would advise using serialised files
via DistributedCache if it is larger in size, such as 5+ MB.

On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com> wrote:
> I want to get an object value from Driver to mapper.
> Am i able to store an object value using conf.set. In order to access the
> same value from the driver?
>
>
> --
> Thanks & Regards
>
> Unmesha Sreeveni U.B
>
>



-- 
Harsh J

Re: conf.set() and conf.get()

Posted by Harsh J <ha...@cloudera.com>.
If you can store your object in a string format, you should be able to
use Configuration to do so, and I would advise using serialised files
via DistributedCache if it is larger in size, such as 5+ MB.

On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com> wrote:
> I want to get an object value from Driver to mapper.
> Am i able to store an object value using conf.set. In order to access the
> same value from the driver?
>
>
> --
> Thanks & Regards
>
> Unmesha Sreeveni U.B
>
>



-- 
Harsh J

Re: conf.set() and conf.get()

Posted by Harsh J <ha...@cloudera.com>.
If you can store your object in a string format, you should be able to
use Configuration to do so, and I would advise using serialised files
via DistributedCache if it is larger in size, such as 5+ MB.

On Mon, Dec 30, 2013 at 9:26 AM, unmesha sreeveni <un...@gmail.com> wrote:
> I want to get an object value from Driver to mapper.
> Am i able to store an object value using conf.set. In order to access the
> same value from the driver?
>
>
> --
> Thanks & Regards
>
> Unmesha Sreeveni U.B
>
>



-- 
Harsh J

Re:conf.set() and conf.get()

Posted by 小网客 <sm...@foxmail.com>.
json string to java object and then java object to json string
then 
conf.set("yourkey",jsonStr);


------------------
---------------------------------------------
BestWishes!
Blog:http://snv.iteye.com/
Email:1134687142@qq.com
 

 




------------------ Original ------------------
From:  "unmesha sreeveni";<un...@gmail.com>;
Date:  Mon, Dec 30, 2013 12:26 PM
To:  "User Hadoop"<us...@hadoop.apache.org>; 

Subject:  conf.set() and conf.get()



I want to get an object value from Driver to mapper.
Am i able to store an object value using conf.set. In order to access the same value from the driver?
 



-- 
Thanks & Regards 

Unmesha Sreeveni U.B

Re:conf.set() and conf.get()

Posted by 小网客 <sm...@foxmail.com>.
json string to java object and then java object to json string
then 
conf.set("yourkey",jsonStr);


------------------
---------------------------------------------
BestWishes!
Blog:http://snv.iteye.com/
Email:1134687142@qq.com
 

 




------------------ Original ------------------
From:  "unmesha sreeveni";<un...@gmail.com>;
Date:  Mon, Dec 30, 2013 12:26 PM
To:  "User Hadoop"<us...@hadoop.apache.org>; 

Subject:  conf.set() and conf.get()



I want to get an object value from Driver to mapper.
Am i able to store an object value using conf.set. In order to access the same value from the driver?
 



-- 
Thanks & Regards 

Unmesha Sreeveni U.B