hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaurav Gupta <gaurav.gopi...@gmail.com>
Subject Re: HttpConfig API changes in hadoop 2.4.0
Date Wed, 30 Apr 2014 22:08:19 GMT
I am trying to get the container logs url and here is the code snippet

containerLogsUrl = HttpConfig.getSchemePrefix() +
this.container.nodeHttpAddress + "/node/containerlogs/" + id + "/" +
System.getenv(ApplicationConstants.Environment.USER.toString());


Thanks

Gaurav



On Wed, Apr 30, 2014 at 3:02 PM, Haohui Mai <hmai@hortonworks.com> wrote:

> Hi,
>
> Can you describe your use cases, that is, how the prefix is used? Usually
> you can get around with it by generating relative URLs, which starts at
> "//".
>
> ~Haohui
>
>
> On Wed, Apr 30, 2014 at 2:31 PM, Gaurav Gupta <gaurav.gopi123@gmail.com>wrote:
>
>> Hi,
>>
>> I was using hadoop 2.2.0 to build my application. I was using
>> HttpConfig.getSchemaPrefix() api call. When I updated hadoop to 2.4.0, the
>> compilation fails for my application and I see that HttpConfig
>> (org.apache.hadoop.http.HttpConfig) APIs have changed.
>>
>> How do I get the schrema Prefix in 2.4?
>>
>> Thanks
>> Gaurav
>>
>
>
> CONFIDENTIALITY NOTICE
> NOTICE: This message is intended for the use of the individual or entity
> to which it is addressed and may contain information that is confidential,
> privileged and exempt from disclosure under applicable law. If the reader
> of this message is not the intended recipient, you are hereby notified that
> any printing, copying, dissemination, distribution, disclosure or
> forwarding of this communication is strictly prohibited. If you have
> received this communication in error, please contact the sender immediately
> and delete it from your system. Thank You.

Mime
View raw message