Erik O'Shaughnessy created SPARK-17944:

             Summary: sbin/start-* scripts use of `hostname -f` fail for 
                 Key: SPARK-17944
             Project: Spark
          Issue Type: Bug
    Affects Versions: 2.0.1
         Environment: Solaris 10, Solaris 11
            Reporter: Erik O'Shaughnessy
            Priority: Trivial

{{$SPARK_HOME/sbin/}} fails:

$ ./ 
usage: hostname [[-t] system_name]
       hostname [-D]
starting org.apache.spark.deploy.master.Master, logging to 
failed to launch org.apache.spark.deploy.master.Master:
    --properties-file FILE Path to a custom Spark properties file.
                           Default is conf/spark-defaults.conf.
full log in 

I found SPARK-17546 which changed the invocation of hostname in 
sbin/, sbin/ and sbin/ 
to include the flag {{-f}}, which is not a valid command line option for the 
Solaris hostname implementation. 

As a workaround, Solaris users can substitute:
`/usr/sbin/check-hostname | awk '{print $NF}'`

Admittedly not an obvious fix, but it provides equivalent functionality. 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to