You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Kengo Seki (JIRA)" <ji...@apache.org> on 2016/06/02 17:28:59 UTC
[jira] [Updated] (BIGTOP-2465) init script for Alluxio master
doesn't work
[ https://issues.apache.org/jira/browse/BIGTOP-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kengo Seki updated BIGTOP-2465:
-------------------------------
Attachment: BIGTOP-2465.1.patch
Attaching a patch.
> init script for Alluxio master doesn't work
> -------------------------------------------
>
> Key: BIGTOP-2465
> URL: https://issues.apache.org/jira/browse/BIGTOP-2465
> Project: Bigtop
> Issue Type: Bug
> Components: Init scripts
> Reporter: Kengo Seki
> Attachments: BIGTOP-2465.1.patch
>
>
> I tried to build and use Alluxio, but it failed:
> {code}
> [sekikn@localhost bigtop]$ ./gradlew bigtop-utils-rpm
> [sekikn@localhost bigtop]$ ./gradlew alluxio-rpm
> [sekikn@localhost bigtop]$ sudo yum -y install output/alluxio/noarch/alluxio-1.0.1-1.el6.noarch.rpm output/bigtop-utils/noarch/bigtop-utils-1.2.0-1.el6.noarch.rpm
> [sekikn@localhost bigtop]$ sudo /usr/lib/alluxio/bin/alluxio format
> cat: /etc/alluxio/conf/workers: No such file or directory
> Formatting Alluxio Master @ localhost
> [sekikn@localhost bigtop]$ sudo /etc/init.d/alluxio-master start
> Starting Alluxio master (alluxio-master): [ OK ] # seemed to start successfully
> [sekikn@localhost bigtop]$ echo $?
> 1 # but actually it failed
> [sekikn@localhost bigtop]$ ps aux | grep alluxio | grep -v grep
> [sekikn@localhost bigtop]$
> {code}
> It seems to be caused by a wrong option for the startup command. In /etc/init.d/alluxio-master, "master Mount" is specified as the flags.
> {code}
> 61 EXEC_PATH="/usr/lib/alluxio/bin/alluxio-start.sh"
> 62 SVC_USER=""
> 63 DAEMON_FLAGS="master Mount"
> 86 /bin/bash -c "nohup nice -n 0 \
> 87 ${EXEC_PATH} ${DAEMON_FLAGS} \
> 88 > $LOG_FILE 2>&1 & "
> {code}
> but MOPT can be specified only for all, worker and workers.
> {code}
> [sekikn@localhost bigtop]$ /usr/lib/alluxio/bin/alluxio-start.sh -h
> Usage: alluxio-start.sh [-hNw] WHAT [MOPT] [-f]
> Where WHAT is one of:
> all MOPT Start master and all workers.
> local Start a master and worker locally
> master Start the master on this node
> safe Script will run continuously and start the master if it's not running
> worker MOPT Start a worker on this node
> workers MOPT Start workers on worker nodes
> restart_worker Restart a failed worker on this node
> restart_workers Restart any failed workers on worker nodes
> MOPT is one of:
> Mount Mount the configured RamFS. Notice: this will format the existing RamFS.
> SudoMount Mount the configured RamFS using sudo. Notice: this will format the existing RamFS.
> NoMount Do not mount the configured RamFS
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)