You are hitting this
<http://hadoop.apache.org/docs/r2.4.0/hadoop-project-dist/hadoop-hdfs/CHANGES.txt>HDFS-5308.
Replace HttpConfig#getSchemePrefix with implicit schemes in HDFS JSP.
(Haohui Mai via jing9)



On Wed, Apr 30, 2014 at 6:08 PM, Gaurav Gupta <[email protected]>wrote:

> 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 <[email protected]> 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 
>> <[email protected]>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.
>
>
>

Reply via email to