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 "Jon Brisbin (JIRA)" <ji...@apache.org> on 2008/11/06 22:21:45 UTC

[jira] Created: (HADOOP-4603) Installation on Solaris needs additional PATH setting

Installation on Solaris needs additional PATH setting
-----------------------------------------------------

                 Key: HADOOP-4603
                 URL: https://issues.apache.org/jira/browse/HADOOP-4603
             Project: Hadoop Core
          Issue Type: Bug
          Components: documentation
    Affects Versions: 0.18.2
         Environment: Solaris 10 x86
            Reporter: Jon Brisbin


A default installation as outlined in the docs won't start on Solaris 10 x86. The "whoami" utility is in path "/usr/ucb" on Solaris 10, which isn't in the standard PATH environment variable unless the user has added that specifically. The documentation should reflect this.

Solaris 10 also seemed to throw NPEs if you didn't explicitly set the IP address to bind the servers to. Simply overriding the IP address fixes the problem.

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


[jira] Updated: (HADOOP-4603) Installation on Solaris needs additional PATH setting

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

Kohsuke Kawaguchi updated HADOOP-4603:
--------------------------------------

    Attachment: HADOOP-4603

Patch extracted from Git

> Installation on Solaris needs additional PATH setting
> -----------------------------------------------------
>
>                 Key: HADOOP-4603
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4603
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.18.2
>         Environment: Solaris 10 x86
>            Reporter: Jon Brisbin
>         Attachments: HADOOP-4603, id_instead_of_whoami.diff
>
>
> A default installation as outlined in the docs won't start on Solaris 10 x86. The "whoami" utility is in path "/usr/ucb" on Solaris 10, which isn't in the standard PATH environment variable unless the user has added that specifically. The documentation should reflect this.
> Solaris 10 also seemed to throw NPEs if you didn't explicitly set the IP address to bind the servers to. Simply overriding the IP address fixes the problem.

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


[jira] Updated: (HADOOP-4603) Installation on Solaris needs additional PATH setting

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-4603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo (Nicholas), SZE updated HADOOP-4603:
-------------------------------------------

     Component/s:     (was: documentation)
                  fs
    Hadoop Flags: [Incompatible change]

Currently, we don't require sh, cut and sed.  These changes may break existing systems.  BTW, we do assume bash.

> Installation on Solaris needs additional PATH setting
> -----------------------------------------------------
>
>                 Key: HADOOP-4603
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4603
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.18.2
>         Environment: Solaris 10 x86
>            Reporter: Jon Brisbin
>         Attachments: id_instead_of_whoami.diff
>
>
> A default installation as outlined in the docs won't start on Solaris 10 x86. The "whoami" utility is in path "/usr/ucb" on Solaris 10, which isn't in the standard PATH environment variable unless the user has added that specifically. The documentation should reflect this.
> Solaris 10 also seemed to throw NPEs if you didn't explicitly set the IP address to bind the servers to. Simply overriding the IP address fixes the problem.

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


[jira] Updated: (HADOOP-4603) Installation on Solaris needs additional PATH setting

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

Kai Mosebach updated HADOOP-4603:
---------------------------------

    Comment: was deleted

> Installation on Solaris needs additional PATH setting
> -----------------------------------------------------
>
>                 Key: HADOOP-4603
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4603
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 0.18.2
>         Environment: Solaris 10 x86
>            Reporter: Jon Brisbin
>         Attachments: id_instead_of_whoami.diff
>
>
> A default installation as outlined in the docs won't start on Solaris 10 x86. The "whoami" utility is in path "/usr/ucb" on Solaris 10, which isn't in the standard PATH environment variable unless the user has added that specifically. The documentation should reflect this.
> Solaris 10 also seemed to throw NPEs if you didn't explicitly set the IP address to bind the servers to. Simply overriding the IP address fixes the problem.

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


[jira] Commented: (HADOOP-4603) Installation on Solaris needs additional PATH setting

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

Kai Mosebach commented on HADOOP-4603:
--------------------------------------

Maybe its better to use the who command anyway, since it is present on Solaris, Linux, Darwin

i.e. 

# who -q | cut -f 1 -d " "| grep -v \# | head -1


> Installation on Solaris needs additional PATH setting
> -----------------------------------------------------
>
>                 Key: HADOOP-4603
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4603
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 0.18.2
>         Environment: Solaris 10 x86
>            Reporter: Jon Brisbin
>
> A default installation as outlined in the docs won't start on Solaris 10 x86. The "whoami" utility is in path "/usr/ucb" on Solaris 10, which isn't in the standard PATH environment variable unless the user has added that specifically. The documentation should reflect this.
> Solaris 10 also seemed to throw NPEs if you didn't explicitly set the IP address to bind the servers to. Simply overriding the IP address fixes the problem.

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


[jira] Commented: (HADOOP-4603) Installation on Solaris needs additional PATH setting

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

Kai Mosebach commented on HADOOP-4603:
--------------------------------------

ok, good to know...

bash might be missing on systems like Solaris and BSD though and/or in a different path.

> Installation on Solaris needs additional PATH setting
> -----------------------------------------------------
>
>                 Key: HADOOP-4603
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4603
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.18.2
>         Environment: Solaris 10 x86
>            Reporter: Jon Brisbin
>         Attachments: id_instead_of_whoami.diff
>
>
> A default installation as outlined in the docs won't start on Solaris 10 x86. The "whoami" utility is in path "/usr/ucb" on Solaris 10, which isn't in the standard PATH environment variable unless the user has added that specifically. The documentation should reflect this.
> Solaris 10 also seemed to throw NPEs if you didn't explicitly set the IP address to bind the servers to. Simply overriding the IP address fixes the problem.

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


[jira] Commented: (HADOOP-4603) Installation on Solaris needs additional PATH setting

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

Steve Loughran commented on HADOOP-4603:
----------------------------------------

Stack traces of any NPEs would be handy. 

> Installation on Solaris needs additional PATH setting
> -----------------------------------------------------
>
>                 Key: HADOOP-4603
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4603
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 0.18.2
>         Environment: Solaris 10 x86
>            Reporter: Jon Brisbin
>
> A default installation as outlined in the docs won't start on Solaris 10 x86. The "whoami" utility is in path "/usr/ucb" on Solaris 10, which isn't in the standard PATH environment variable unless the user has added that specifically. The documentation should reflect this.
> Solaris 10 also seemed to throw NPEs if you didn't explicitly set the IP address to bind the servers to. Simply overriding the IP address fixes the problem.

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


[jira] Commented: (HADOOP-4603) Installation on Solaris needs additional PATH setting

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

Kohsuke Kawaguchi commented on HADOOP-4603:
-------------------------------------------

I think a better change is for Hadoop to simply try /usr/ucb/whoami if exec whoami fails. This code executes only once, so I don't see any downside of trying multiple locations for better user experience.

Another possibility is to use JNA (http://jna.dev.java.net/) and make a libc call from within Java.

> Installation on Solaris needs additional PATH setting
> -----------------------------------------------------
>
>                 Key: HADOOP-4603
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4603
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.18.2
>         Environment: Solaris 10 x86
>            Reporter: Jon Brisbin
>         Attachments: id_instead_of_whoami.diff
>
>
> A default installation as outlined in the docs won't start on Solaris 10 x86. The "whoami" utility is in path "/usr/ucb" on Solaris 10, which isn't in the standard PATH environment variable unless the user has added that specifically. The documentation should reflect this.
> Solaris 10 also seemed to throw NPEs if you didn't explicitly set the IP address to bind the servers to. Simply overriding the IP address fixes the problem.

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


[jira] Commented: (HADOOP-4603) Installation on Solaris needs additional PATH setting

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

Kohsuke Kawaguchi commented on HADOOP-4603:
-------------------------------------------

A patch to call /usr/ucb/whoami is at http://github.com/kohsuke/hadoop/commit/0fe42e97df3a3d4fec9bb503f3eee266eadd1e02

> Installation on Solaris needs additional PATH setting
> -----------------------------------------------------
>
>                 Key: HADOOP-4603
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4603
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.18.2
>         Environment: Solaris 10 x86
>            Reporter: Jon Brisbin
>         Attachments: id_instead_of_whoami.diff
>
>
> A default installation as outlined in the docs won't start on Solaris 10 x86. The "whoami" utility is in path "/usr/ucb" on Solaris 10, which isn't in the standard PATH environment variable unless the user has added that specifically. The documentation should reflect this.
> Solaris 10 also seemed to throw NPEs if you didn't explicitly set the IP address to bind the servers to. Simply overriding the IP address fixes the problem.

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


[jira] Updated: (HADOOP-4603) Installation on Solaris needs additional PATH setting

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

Kai Mosebach updated HADOOP-4603:
---------------------------------

    Attachment: id_instead_of_whoami.diff

Uses sh, id, sed, cut instead of whoami

> Installation on Solaris needs additional PATH setting
> -----------------------------------------------------
>
>                 Key: HADOOP-4603
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4603
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 0.18.2
>         Environment: Solaris 10 x86
>            Reporter: Jon Brisbin
>         Attachments: id_instead_of_whoami.diff
>
>
> A default installation as outlined in the docs won't start on Solaris 10 x86. The "whoami" utility is in path "/usr/ucb" on Solaris 10, which isn't in the standard PATH environment variable unless the user has added that specifically. The documentation should reflect this.
> Solaris 10 also seemed to throw NPEs if you didn't explicitly set the IP address to bind the servers to. Simply overriding the IP address fixes the problem.

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