You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2008/04/26 05:49:56 UTC

[jira] Created: (HADOOP-3317) add default port for hdfs namenode

add default port for hdfs namenode
----------------------------------

                 Key: HADOOP-3317
                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
             Project: Hadoop Core
          Issue Type: Improvement
          Components: dfs
            Reporter: Doug Cutting
            Priority: Minor


Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated HADOOP-3317:
---------------------------------

    Attachment: HADOOP-3317.patch

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated HADOOP-3317:
---------------------------------

    Status: Patch Available  (was: Open)

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Robert Chansler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Chansler updated HADOOP-3317:
------------------------------------

    Release Note: Changed the default port for  "hdfs:" URIs to be 8020, so that one may simply use URIs of the form "hdfs://example.com/dir/file".  (was:  The port in  "hdfs:" URIs now defaults to 8020, so that one may simply use URIs of the form "hdfs://example.com/dir/file".)
    Hadoop Flags: [Incompatible change, Reviewed]  (was: [Reviewed])

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>             Fix For: 0.18.0
>
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated HADOOP-3317:
---------------------------------

    Status: Patch Available  (was: Open)

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3317) add default port for hdfs namenode

Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593506#action_12593506 ] 

Steve Loughran commented on HADOOP-3317:
----------------------------------------

SANS doesnt list 8020 as a port used by popular malware, that being something you want to avoid unless you want to upset your network security team
http://www.sans.org/resources/idfaq/oddports.php

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3317) add default port for hdfs namenode

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592552#action_12592552 ] 

Doug Cutting commented on HADOOP-3317:
--------------------------------------

In case I wasn't clear, this would be analogous to port 80 as the default port for HTTP.

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Priority: Minor
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3317) add default port for hdfs namenode

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594876#action_12594876 ] 

Hudson commented on HADOOP-3317:
--------------------------------

Integrated in Hadoop-trunk #483 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/483/])

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>             Fix For: 0.18.0
>
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated HADOOP-3317:
---------------------------------

    Attachment: HADOOP-3317.patch

New patch that updates documentation accordingly.

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated HADOOP-3317:
---------------------------------

       Resolution: Fixed
    Fix Version/s: 0.18.0
     Release Note:  The port in  "hdfs:" URIs now defaults to 8020, so that one may simply use URIs of the form "hdfs://example.com/dir/file".
           Status: Resolved  (was: Patch Available)

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>             Fix For: 0.18.0
>
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen O'Malley updated HADOOP-3317:
----------------------------------

    Hadoop Flags: [Reviewed]

+1

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated HADOOP-3317:
---------------------------------

    Assignee: Doug Cutting
      Status: Patch Available  (was: Open)

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3317) add default port for hdfs namenode

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593973#action_12593973 ] 

Hadoop QA commented on HADOOP-3317:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12381328/HADOOP-3317.patch
against trunk revision 645773.

    @author +1.  The patch does not contain any @author tags.

    tests included +1.  The patch appears to include 6 new or modified tests.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new javac compiler warnings.

    release audit +1.  The applied patch does not generate any new release audit warnings.

    findbugs -1.  The patch appears to introduce 1 new Findbugs warnings.

    core tests +1.  The patch passed core unit tests.

    contrib tests +1.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2369/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2369/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2369/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2369/console

This message is automatically generated.

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3317) add default port for hdfs namenode

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593623#action_12593623 ] 

Hadoop QA commented on HADOOP-3317:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12381261/HADOOP-3317.patch
against trunk revision 645773.

    @author +1.  The patch does not contain any @author tags.

    tests included +1.  The patch appears to include 3 new or modified tests.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new javac compiler warnings.

    release audit +1.  The applied patch does not generate any new release audit warnings.

    findbugs +1.  The patch does not introduce any new Findbugs warnings.

    core tests +1.  The patch passed core unit tests.

    contrib tests +1.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2357/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2357/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2357/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2357/console

This message is automatically generated.

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated HADOOP-3317:
---------------------------------

    Attachment: HADOOP-3317.patch

Here's an implementation of this, using the default port of 8020.

Is 8020 a good default port for namenodes?  That's what's used within Y!, but http://www.iana.org/assignments/port-numbers shows it assigned to some Intuit protocol.  Do we care?

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated HADOOP-3317:
---------------------------------

    Status: Open  (was: Patch Available)

Doh!  Forgot to make the constant final...

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3317) add default port for hdfs namenode

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594411#action_12594411 ] 

Hadoop QA commented on HADOOP-3317:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12381448/HADOOP-3317.patch
  against trunk revision 653611.

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 6 new or modified tests.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2400/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2400/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2400/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2400/console

This message is automatically generated.

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated HADOOP-3317:
---------------------------------

    Attachment: HADOOP-3317.patch

> A static final in NameNode would be better, but it is a nit.

Good idea.  I moved the constant to NameNode.

> The bigger problem is that you don't have any unit tests

Good point.  I've added some unit tests.

> The static method NameNode.getUri is passed a NameNode and therefore shouldn't be static.

The parameter is named "namenode" but it's an InetSocketAddress.



> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3317) add default port for hdfs namenode

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610211#action_12610211 ] 

Hudson commented on HADOOP-3317:
--------------------------------

Integrated in Hadoop-trunk #537 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/537/])

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>             Fix For: 0.18.0
>
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3317) add default port for hdfs namenode

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen O'Malley updated HADOOP-3317:
----------------------------------

    Status: Open  (was: Patch Available)

I'm not wild about adding things that are local to the NameNode into FSConstants. (Actually, the idiom of FSConstants, which just provides constants via inheritance is considered an anti-pattern...) A static final in NameNode would be better, but it is a nit.

The bigger problem is that you don't have any unit tests. You can't do a system test, because we don't allow fixed ports in the unit tests, but you can parse the string and get the uri.

The static method NameNode.getUri is passed a NameNode and therefore shouldn't be static.



> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>         Attachments: HADOOP-3317.patch, HADOOP-3317.patch
>
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3317) add default port for hdfs namenode

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592581#action_12592581 ] 

Owen O'Malley commented on HADOOP-3317:
---------------------------------------

+1

> add default port for hdfs namenode
> ----------------------------------
>
>                 Key: HADOOP-3317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3317
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Doug Cutting
>            Priority: Minor
>
> Perhaps we should add a default port number for the HDFS namenode.  This would simplify URIs.  Instead of hdfs://host.net:9999/foo/bar folks would be able to just use hdfs://host.net/foo/bar in most cases.  Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.