Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2465

init script for Alluxio master doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Init scripts
    • None

    Description

      I tried to build and use Alluxio, but it failed:

      [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]$ 
      

      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.

       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 & "
      

      but MOPT can be specified only for all, worker and workers.

      [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
      

      Attachments

        1. BIGTOP-2465.1.patch
          0.9 kB
          Kengo Seki

        Activity

          People

            sekikn Kengo Seki
            sekikn Kengo Seki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: