Opened 7 years ago

Closed 7 years ago

#34665 closed defect (fixed)

hadoop @1.0.2 hadoop-bin uses sudo option -E which is not available on Mac OS X 10.5

Reported by: heapifyman@… Owned by: humem (humem)
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc:
Port: hadoop

Description

The pre-installed sudo version on Mac OS X 10.5 does not support option -E which is used in hadoop-bin script. This causes the following error message when running hadoop-bin:

sudo: illegal option `-E'

Either hadoop-bin script could be changed, or hadoop port should not be available for Mac OS X 10.5 or hadoop port should have macport's sudo as required dependency?

Change History (5)

comment:1 Changed 7 years ago by ryandesign (Ryan Schmidt)

Keywords: hadoop sudo removed
Owner: changed from macports-tickets@… to hum@…

comment:2 Changed 7 years ago by ryandesign (Ryan Schmidt)

Type: requestdefect

comment:3 Changed 7 years ago by humem (humem)

Status: newassigned

Thank you for reporting a problem of the hadoop port. I updated the port to the latest version 1.0.3 and added depends_run port:sudo for Leopard (10.5) in r93805. Could you please check the port? Thanks in advance!

comment:4 Changed 7 years ago by heapifyman@…

The new version installed sudo as dependency and the reported error message disappeared. However, when trying to run

hadoop-bin hadoop namenode -format

I got the following error

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
chdir: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
chdir: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
chdir: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
Warning: $HADOOP_HOME is deprecated.

Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working directory.
	at java.lang.System.initProperties(Native Method)
	at java.lang.System.initializeSystemClass(System.java:1087)

comment:5 in reply to:  4 Changed 7 years ago by humem (humem)

Resolution: fixed
Status: assignedclosed

Replying to heapifyman@…:

I got the following error

...

}}}

It is too bad that the modification ended up in vain. I made the port unavailable on Mac OS X 10.5 or earlier in r94067. If you have a good idea, please let me know, or you can update the port directly!

Note: See TracTickets for help on using tickets.