When configuring Hadoop, there is no JDK found when you format HadoopI used Red Hat is 32-bit, no ready-made 32-bit, hit Java, found that the machine has Java, and found a bit of its locationFound jdk-1.6.0.which Java[email protected] hadoop-1.1.2]# which Java/usr/bin/java[Email protected] hadoop-1.1.2]# Ls/usr/bin/java/usr/bin/java[Email protected] hadoop-1.1.2]# ls-l/usr/bin/javalrwxrwxrwx. 1 root root June 03:00/usr/bin/java-/etc/alternatives/java[
This article was reproduced from: http://blog.csdn.net/lincyang/article/details/42024565Android L recommended using the JDK7 compiler, which is the natural evolution of the law, just like 4 years ago to compile Android 1.6 needs to use JDK5.Multiple versions of the JDK can coexist, and you can switch them at any time using the Update-alternatives tool. The procedures for installing OPENJDK and Oracle JDK (Sun) and switching versions are described belo
reduce Ubuntu Central GCC and g++ version ofThe gcc/g++ in Ubuntu 12.04 are all 4.6, dropping it to 4.4.The procedure is as follows:One, reduce the GCC version1. $sudo Apt-get Install gcc-4.42, $sudo update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.4 40 (where "40" is the priority, the higher the value the higher the priority)3, $sudo update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.6 60
in the configuration Hadoop is, in the format of Hadoop, there is no JDK found I used CENTOS7 is 64 bit, found that the machine has Java, looked for its location found the JDK-1.7.0_75which java[[email protected] Hadoop-1.1.2]# which Java/usr/bin/Java[[email protected] Hadoop-1.1.2]# ls/usr/bin/Java/usr/bin/Java[[email protected] Hadoop-1.1.2]# ls-l/usr/bin/javalrwxrwxrwx.1Root root AJune - Geneva:xx/usr/bin/java-/etc/alternatives/Java[[email protecte
安装环境:ubuntu14.04。JDK不只Oracle一家,但出于习惯问题,我还是选择安装Oracle的JDK。安装方法有两种,一种是通过ppa安装自动配置环境,另一种是下载压缩包解压后自己配置环境。第一种方法比较省事,只是有一个前提:必须上网。第二种方法稍微麻烦一些,有些像在Windows的安装配置。1 Installing using the PPA source method1.1 Adding PPAsudo add-apt-repository Ppa:webupd8team/javasudo apt-get update1.2 Installing Oracle-java-installersudo apt-get install Oracle-java8-installerThe installer will prompt you to agree to Oracle's terms of service, select OK, and then select Yes (note that you want to use the keyboard.) )。1.3 Set
Sogou input method under Ubuntu1. Add a sourcesudo add-apt-repository ppa:fcitx-team/nightly2. Update the sourcesudo apt-get update3. Installing FCITXsudo apt-get install FCITX4. Installing the FCITX Configuration toolsudo apt-get install FCITX-CONFIG-GTK5. Installing the FCITX Table-all packagesudo apt-get install Fcitx-table-all6. Install the Im-switch switch toolsudo apt-get install Im-switch7. Enter "FCITX" in the search field in the upper left corner, the input method icon appears, the ins
1, the official website download JDK, address: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html, select Jdk-8u40-linux-x64.tar.gz2. Extract the files to the specified directory and modify the file namesudo mkdir /usr/lib/jvmsudotar zxvf jdk-8u40-linux-x64. tar. gz-c/usr/lib//usr/lib/JVMwithsudomv jdk1. 7. 0_21 Java3, modify the configuration file, add environment variables1 sudo vim ~/. BASHRC2#在文档最下面添加以下配置 3 export java_home=/usr/lib/jvm/ 4 export jre_home=$
if your own JDK is located on the pathReference documentsIn fact, the above is not right, it is important to configure the default JDK to modifysudo update-alternatives--install "/usr/bin/java" "java" "/usr/jdk1.7.0_09/bin/java" 300sudo update-alternatives-- Install "/usr/bin/javac" "Javac" "/usr/jdk1.7.0_09/bin/javac" 300sudo update-alternatives--install "/usr/
(to replace OPENJDK)Open the terminal, just open it anywhere, and then execute the command in turn.sudo update-alternatives--install /home/hsiung/javadev/bin /java sudo update-alternatives--install /home/hsiung/javadev/bin /javac sudo update-alternatives--install /home/hsiung/javadev/bin /jar sudo update-alternatives
Environment is ubuntu14.04,jdk1.8.0_73, ActiveMQ-5.13.1
Download JDKHttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmlMkdir/usr/lib/jvmTar zxvf jdk-8u73-linux-x64.tar.gzMV jdk1.8.0_73/usr/lib/jvm/Mv/usr/lib/jvm/jdk1.8.0_73/usr/lib/jvm/jdk
Installing the configuration JDKThe next time the terminal executes the following statementUpdate-alternatives--install/usr/bin/java Java/usr/lib/jvm/jdk/bin/java 1065Update-
Original address: http://www.linuxdiyf.com/linux/1794.htmlThe version of GCC used in Ubuntu is different from the release version, and when compiling the Android system different versions are recommended to compile with different gcc, so can you change the system's GCC to suit the needs of the Android build environment? The answer is yes.Let's see what the GCC and g++ are for our system.Gcc-vThe information you can get is as followsGCC version 4.4.6 (Ubuntu/linaro 4.4.6-11ubuntu2)What if we want
From:http://www.cnblogs.com/plinx/archive/2013/06/01/3113106.html1, to the Sun's official website downloadhttp://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html Select Accept License and select the JDK download that fits your model.2, unzip the file, modify the filenamemkdir/usr/lib/tar zxvf jdk-7u21-linux-i586. Tar.gz-c/usr/lib/jvm$ cd/usr/lib/mv Jdk1. 7.0_21 java 3. Add Environment variablessudo vim ~/.BASHRCAdd the following:Export java_home=/usr/lib/jvm/JAVA
The version of GCC used in Ubuntu is different from the release version, and when compiling the Android system different versions are recommended to compile with different gcc, so can you change the system's GCC to suit the needs of the Android build environment? The answer is yes.Let's see what the GCC and g++ are for our system.Gcc-vThe information you can get is as followsGCC version 4.4.6 (Ubuntu/linaro 4.4.6-11ubuntu2)What if we want to use gcc4.5? First see if there is gcc4.5 installed,ls/
The next day of contact with Hadoop, the configuration of Hadoop to the environment also took two days, the process of their own configuration is written here, I hope to help you!I will use the text to share all the resources here, click to download, do not need to find a!Among them is "the Hadoop Technology Insider" This book, the first chapter describes this configuration process, but not detailed ~---------------Installing the JDK-------------------------------1.Download jdk1.6.0_452. Unzip t
Error: ISO C + + does not allow the initialization of a very static member within a classstarting today to learn C + + primer, when involved in the sales_item.h header file, there are some problems (and c++11 new features related), the current compiler version is gcc/g++ 4.6.3, so need to upgrade. You can use the PPA to upgrade to 4.8.1, as follows:sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get update; sudo apt-get install gcc-4.8 g++-4.8sudo update-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.