hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hardik Pandya <smarty.ju...@gmail.com>
Subject Re: HttpConfig API changes in hadoop 2.4.0
Date Thu, 01 May 2014 13:13:17 GMT
https://issues.apache.org/jira/browse/HDFS-5308


On Thu, May 1, 2014 at 8:58 AM, Hardik Pandya <smarty.juice@gmail.com>wrote:

> 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 <gaurav.gopi123@gmail.com>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 <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