zoukankan      html  css  js  c++  java
  • mac 下设置jdk 路径,设置hadoop 路径

    1、 touch ~/.bash_profile  创建一个文件

    2、vim ~/.bash_profile

          JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home
    export JAVA_HOME
    export CLASSPATH=.:$JAVA_HOME
    export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
    export CLASSPATH=.:$JAVA_HOME/lib:$CLASSPATH

    M3_HOME=/Users/zhangfuxin/zfxTool/apache-maven-3.3.9

    PATH=$M3_HOME/bin:$PATH

    export M3_HOME
    export PATH
    HADOOP_HOME=/Users/zhangfuxin/zfxTool/hadoop-2.7.3
    PATH=$HADOOP_HOME/bin:$PATH
    PATH=$HADOOP_HOME/sbin:$PATH
    export HADOOP_HOME
    export PATH
    3、source ~/.bash_profile

    OK 了

  • 相关阅读:
    小数化分数2
    Sum of divisors
    Subsequence
    Lowest Bit
    Specialized Four-Digit Numbers
    Hunters
    Pet
    测试你是否和LTC水平一样高
    Bank Interest
    bzoj 1295
  • 原文地址:https://www.cnblogs.com/zfxJava/p/6129445.html
Copyright © 2011-2022 走看看