Thanks Kevin
Dilli

On Mon, Apr 22, 2013 at 2:43 PM, Kevin Minder (JIRA) <[email protected]> wrote:
>
>      [ 
> https://issues.apache.org/jira/browse/KNOX-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>  ]
>
> Kevin Minder closed KNOX-58.
> ----------------------------
>
>     Resolution: Fixed
>
>> NameNode endpoint exposed to gateway clients in runtime exception
>> -----------------------------------------------------------------
>>
>>                 Key: KNOX-58
>>                 URL: https://issues.apache.org/jira/browse/KNOX-58
>>             Project: Apache Knox
>>          Issue Type: Bug
>>          Components: Server
>>    Affects Versions: 0.2.0
>>         Environment: Knox gateway server 0.2.0 running on a Mac.
>> Hadoop cluster running in Sandbox HDP Bombardier2,  in VirtualBox 4.2.10.
>>            Reporter: Dilli Arumugam
>>             Fix For: 0.2.0, 0.3.0
>>
>>         Attachments: knox-58-patch01.patch
>>
>>
>> Started Sandbox HDP Bombardier2,  in VirtualBox 4.2.10,  with out of box 
>> hdfs-site.xml in the sandbox
>> Added the following entry in /etc/hosts
>>      192.168.56.101   vm sandbox
>> Started ldap server
>>     java -jar bin/ldap.jar conf &
>> Started gateway server
>>     java -jar bin/server.jar
>> Started a sample groovy script
>>      java -jar bin/shell.jar samples/ExampleSubmitJob.groovy
>> The groovy script reported the following stack trace
>> ocalhost:knox-0.2.0 darumugam$ java -jar bin/shell.jar 
>> samples/ExampleSubmitJob.groovy
>> Caught: org.apache.hadoop.gateway.shell.HadoopException: 
>> org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 500 
>> java.security.PrivilegedActionException: 
>> org.apache.http.conn.HttpHostConnectException: Connection to http://vm:50070 
>> refused
>> org.apache.hadoop.gateway.shell.HadoopException: 
>> org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 500 
>> java.security.PrivilegedActionException: 
>> org.apache.http.conn.HttpHostConnectException: Connection to http://vm:50070 
>> refused
>>       at 
>> org.apache.hadoop.gateway.shell.AbstractRequest.now(AbstractRequest.java:72)
>>       at org.apache.hadoop.gateway.shell.AbstractRequest$now.call(Unknown 
>> Source)
>>       at ExampleSubmitJob.run(ExampleSubmitJob.groovy:33)
>>       at org.apache.hadoop.gateway.shell.Shell.main(Shell.java:40)
>>       at 
>> org.apache.hadoop.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:64)
>>       at org.apache.hadoop.gateway.launcher.Invoker.invoke(Invoker.java:37)
>>       at org.apache.hadoop.gateway.launcher.Command.run(Command.java:100)
>>       at org.apache.hadoop.gateway.launcher.Launcher.run(Launcher.java:70)
>>       at org.apache.hadoop.gateway.launcher.Launcher.main(Launcher.java:49)
>> Caused by: org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 500 
>> java.security.PrivilegedActionException: 
>> org.apache.http.conn.HttpHostConnectException: Connection to http://vm:50070 
>> refused
>>       at org.apache.hadoop.gateway.shell.Hadoop.executeNow(Hadoop.java:107)
>>       at 
>> org.apache.hadoop.gateway.shell.AbstractRequest.execute(AbstractRequest.java:47)
>>       at 
>> org.apache.hadoop.gateway.shell.hdfs.Rm$Request.access$300(Rm.java:32)
>>       at org.apache.hadoop.gateway.shell.hdfs.Rm$Request$1.call(Rm.java:63)
>>       at org.apache.hadoop.gateway.shell.hdfs.Rm$Request$1.call(Rm.java:56)
>>       at 
>> org.apache.hadoop.gateway.shell.AbstractRequest.now(AbstractRequest.java:70)
>>
>> This implies gateway server is exposing NameNode host and port to the 
>> gateway shell in runtime exception.
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA administrators
> For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to