Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-456

hive-server init script truncates log when starting

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: CDH4.1.2
    • Fix Version/s: CDH4.3.0
    • Component/s: Hive
    • Labels:
      None
    • Environment:
      CentOS 6.3 64bit

      Description

      '/etc/init.d/hive-server' init script truncates log (default: /var/log/hive/hive-server.log) when starting:

      log_success_msg "Starting $desc (${NAME}): "
      $SU -c "cd $HIVE_HOME ; $exec_env nohup \
      $EXE_FILE --service $service_name $PORT \
      > $LOG_FILE 2>&1 < /dev/null & "'echo $! '"> $PID_FILE"

      Log output '> $LOG_FILE' is wrong, and MUST BE '>> $LOG_FILE'. Current script truncate(delete) logs before restarting.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tagomoris TAGOMORI Satoshi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: