[
https://issues.apache.org/jira/browse/HDFS-5545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852287#comment-13852287
]
Jason Lowe commented on HDFS-5545:
----------------------------------
Datanodes starting under jsvc are now getting this exception:
{noformat}
2013-12-18 23:05:05,573 [main] FATAL datanode.DataNode: Exception in secureMain
org.apache.hadoop.HadoopIllegalArgumentException: No endpoints specified
at org.apache.hadoop.http.HttpServer$Builder.build(HttpServer.java:309)
at
org.apache.hadoop.hdfs.server.datanode.DataNode.startInfoServer(DataNode.java:349)
at
org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:697)
at
org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:268)
at
org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1767)
at
org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1682)
at
org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1705)
at
org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:1877)
at
org.apache.hadoop.hdfs.server.datanode.SecureDataNodeStarter.start(SecureDataNodeStarter.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
2013-12-18 23:05:05,576 [main] INFO util.ExitUtil: Exiting with status 1
{noformat}
When the datanode is using jsvc it's setting a connector but not an endpoint.
The endpoint check added in this patch makes the builder fail for that scenario.
> Allow specifying endpoints for listeners in HttpServer
> ------------------------------------------------------
>
> Key: HDFS-5545
> URL: https://issues.apache.org/jira/browse/HDFS-5545
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Haohui Mai
> Assignee: Haohui Mai
> Fix For: 2.4.0
>
> Attachments: HDFS-5545.000.patch, HDFS-5545.001.patch,
> HDFS-5545.002.patch, HDFS-5545.003.patch
>
>
> Currently HttpServer listens to HTTP port and provides a method to allow the
> users to add an SSL listeners after the server starts. This complicates the
> logic if the client needs to set up HTTP / HTTPS serverfs.
> This jira proposes to replace these two methods with the concepts of listener
> endpoints. A listener endpoints is a URI (i.e., scheme + host + port) that
> the HttpServer should listen to. This concept simplifies the task of managing
> the HTTP server from HDFS / YARN.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)