zoukankan      html  css  js  c++  java
  • 寻找JAVA_HOME find java

    more apache-flume-1.8.0-bin/bin/flume-ng

    # find java
    if [ -z "${JAVA_HOME}" ] ; then
      warn "JAVA_HOME is not set!"
      # Try to use Bigtop to autodetect JAVA_HOME if it's available
      if [ -e /usr/libexec/bigtop-detect-javahome ] ; then
        . /usr/libexec/bigtop-detect-javahome
      elif [ -e /usr/lib/bigtop-utils/bigtop-detect-javahome ] ; then
        . /usr/lib/bigtop-utils/bigtop-detect-javahome
      fi
    
      # Using java from path if bigtop is not installed or couldn't find it
      if [ -z "${JAVA_HOME}" ] ; then
        JAVA_DEFAULT=$(type -p java)
        [ -n "$JAVA_DEFAULT" ] || error "Unable to find java executable. Is it in your PATH?" 1
        JAVA_HOME=$(cd $(dirname $JAVA_DEFAULT)/..; pwd)
      fi
    fi
    

      

    https://issues.apache.org/jira/secure/attachment/12533059/FLUME-1154_4.patch

    [FLUME-1154] flume-ng script should first try finding java from PATH and then try using bigtop, instead of vice-versa - ASF JIRA https://issues.apache.org/jira/browse/FLUME-1154

  • 相关阅读:
    http缓存机制与原理
    BFC与浮动
    05ICMP协议与ARP协议(IP协议中重要协议)
    04IP编址(网络层)
    03以太网帧结构(链路层 IEEE802.3)
    02传输介质简介
    shell 脚本 2
    shell 脚本 1
    shell 中时间 表达
    sed 行编辑器
  • 原文地址:https://www.cnblogs.com/rsapaper/p/9437709.html
Copyright © 2011-2022 走看看