Installing RRHive in linux

Source: Internet
Author: User
Release. 2 install R. configure -- with-readlineyes -- with-xyes -- enable-R-shlib -- prefixhomeworkR (-- prefix is the key, R is the self-built folder) makemakeinstall3 Configuration

Install R 1 download R installation package wget http://ftp.ctex.org/mirrors/CRAN/src/base/R-2/R-2.15.0.tar.gz. 2. Install R. /configure -- with-readline = yes -- with-x = yes -- enable-R-shlib -- prefix/home/work/R (-- prefix is the key, R is the self-built folder) make install 3 Configuration

Install R
1. Download the R installation package
Wget http://ftp.ctex.org/mirrors/CRAN/src/base/R-2/R-2.15.0.tar.gz.

2 install R
./Configure -- with-readline = yes -- with-x = yes -- enable-R-shlib -- prefix/home/work/R (-- prefix is the key, R is the self-built folder)
Make
Make install

3. Configure Environment Variables
To configure environment variables (in your own working directory, for example,/home/work), run the following command: vi. after opening the file in bash_profile, add $ {HOME}/R/bin after PATH =.

Install RHive

1. Configure the JAVA environment. Check the environment variable HIVE_HOME.

2. Download The rJava, Hive, and Rserve installation packages.

Wget http://cran.at.r-project.org/src/contrib/Archive/rJava/rJava_0.9-3.tar.gz.
Wget http://cran.at.r-project.org/src/contrib/Archive/Rserve/Rserve_0.6-8.tar.gz.
Wget http://cran.at.r-project.org/src/contrib/Archive/RHive/RHive_0.0-7.tar.gz.

3. Install rJava, Hive, and Rserve ().
R cmd install rJava_0.9-3.tar.gz
R cmd install Rserve_0.6-8.tar.gz
R cmd install RHive_0.0-7.tar.gz

Test

1. Select a directory as the working directory.

2. Run python-m SimpleHTTPServer to set the current directory as the HTTP service directory, which can be accessed through http: // localhost: 8000.

3. Open a shell window and input R in the command line to enter the R environment.

4. Run the Code:
Capabilities () # X11 is not installed, only pdf () dev is available. list () plot (c (1, 2, 4), c (3, 4, 5) q () # The result PDF file is available only after exiting
5 open the browser http: // localhost: 8000. you can open rplotslogs.

6. Restart R and run the Code:

Library (RHive) # You Can See That RHive has been installed to load the required Program Package: rJava to load the required Program Package: RserveThis is RHive 0.0-7. For overview type '? RHive '. HIVE_HOME =/home/work/qe-1.6/qe_rpoff/queryenginecall rhive. init () because HIVE_HOME is set. # Even hive has been done, to be continued

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.