Dr.elephant Deployment Launch Detail process

Source: Internet
Author: User

Recent attempts to install the dr.elephant in a test environment have taken some time and encountered some problems. With the help of official documents and Linedin Akshayrai the Great God, the dr.elephant was eventually successfully launched. Since there is no similar article in the country detailed introduction of dr.elephant deployment start-up practice, now some of their own experience to share with you, welcome to discuss together.

My first installation was done on a distributed Hadoop cluster, and no attempt was made to install dr.elephant locally, so the following installation steps and experience are also for cluster deployment startup. First, I'll make a summary of the required preparations in the documentation that have been deployed, and then talk about the workaround for the problem.

preparatory workcompiling the code to generate the package required by the deployment

1. Install the play frame locally and add the play command path to the environment variable path. Play is required for Java version and must be above Java 8.

2. Modify the source code used in the compilation of the configuration file, app-conf/compile.conf, the Hadoop_version and spark_version modified to the corresponding version. (If you do not modify it, you will encounter problems, I did not try).

3. Run the source code in the Compile command./compile.sh [./app-conf/compile.conf], modify the path in brackets to the path of the corresponding file. The compilation process will download a lot of jar packages and files that need to be used, please wait patiently. My first two compilations failed because of a partial file download failure. If there is a problem, continue to try to compile, the downloaded files will automatically skip, you do not have to download again.

4. After the compilation is complete, there will be a success prompt. At this point you can see in the source folder, more than one directory dist, into this directory can be seen, there is a zip package dr-elephant*.zip, unzip the zip package, generate a folder dr-elephant*. Remember, this folder needs to be distributed to the machine that needs to deploy dr.elephant, which is used below.

5. The app-conf folder in the source code is also distributed back to the machine that needs to deploy dr.elephant

Compile and build the executable file, which can be done locally. It is not necessary to install the Hadoop platform locally.

Cluster Environment Requirements

1. Ensure the normal operation of yarn resource Manager and the normal operation of the historical task service, for the cluster environment that uses yarn to manage the Hadoop platform, this condition generally satisfies

2. Deploy start a MySQL service, MySQL version must be 5.5+. There is no special configuration for MySQL, so you can assign an account that has read and write access to the DB. Create a DB name in MySQL drelephant (this name can be arbitrary, you can see later, and the DB name in the elephant.conf configuration file is the same )

3. Copy the required app-conf folders mentioned in the preparation work to a directory on the machine that needs to be deployed, assuming this directory is/a/app-conf/. Modify the file elephant.conf file in the App-conf folder to add

jvm_props=" -devolutionplugin=enabled-dapplyevolutions.default=true"

and modify the Db_url, Db_user, db_name, and Db_password configuration parameters in this file, instead of the MySQL connection parameters we want to use.

4. Configure the environment variable Elephant_conf_dir on this machine to point the environment variable to the App-conf folder copied from the source. In fact, this step is not necessary, you can see later, if you do not set this variable elephant_conf_dir, when starting dr.elephant, in the command line arguments in the first parameter to add this local directory is also possible.

Deployment Startup

1. Select a machine in the Hadoop cluster as the dr.elephant deployment machine , select an account with access to HDFs on this machine as the Dr.elephant startup account

2. The compiled Dist/dr-elephant* file copied to this machine

3. Go to the Bin directory, execute./start.sh [/a/ APP-CONF] start. If you do not perform the 4th step in the cluster environment requirements, you need to manually enter the/a/app-conf directory as the command line parameter

4. After startup, verify that the execution is successful. If the command line output prompts "Dr.elephant started", it does not prove that it has started successfully. Follow these steps to step through the verification: (1) PS aux | grep elephant to see if there is a process, if any, then the boot succeeds; (2) View the default log, Dr.log, in the first-level directory of the installation package, if there is no obvious exception thrown in the log, the boot is Normal, (3) log in to the MySQL, into the use of the DB, to see if there is a table play_evolutions,yarn_app_ Heuristic_result, Yarn_app_heuristic_result_details and Yarn_app_result, if any of these tables also indicate that the boot is normal; (4) Browser request "host:8080" (This host is the host of the machine that deploys the dr.elephant) to see if you can see the first page of the Dr.elephant UI, and if so, the boot success


If you have any problems with the installation process, check out my blog dr.elephant frequently asked questions for troubleshooting.

In my other blog, "Dr.elephant Startup issues Summary", I will summarize some of the issues that dr.elephant encountered during the deployment startup process and can be viewed if necessary.

Welcome everyone to Exchange Dr.elephant related issues ~


Author Profile: Cussaur, interested in high-concurrency system design and development, is now focusing on big data development efforts. served as a background development engineer of Xiaomi Technology company, now serves as Senior development engineer of Everstring data platform Group.




Dr.elephant Deployment Launch Detail process

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.