Pinpoint under the Win7.

Source: Internet
Author: User
Tags gz file

Pinpoint under the Win7.

Note: Original works, non-permitted reprint without permission

For pinpoint what is this problem, do not do any discussion here, so this article applies to people to understand the basic theory of pinpoint knowledge, need to carry out the Windows System environment builders
1.Pinpoint Frame structure:


2.Pinpoint Resources Download:
https://github.com/naver/pinpoint/releases/tag/1.7.1
Includes: Pinpoint1.7.1 version of Agent,collector and web

The supporting HBase database version is Hbase-1.2.6, which is:
Https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/1.2.6/hbase-1.2.6-bin.tar.gz
Under normal circumstances, unzip the hbase-1.2.6-bin.tar.gz file to the specified folder, for example: D:\hbase
3. Pre-Preparation work:
Deploy Java environment recommendations above 1.8
Free Installation Tomcat8
4. Setup steps:
1. Java Environment Deployment:

Install and deploy the Java environment, the specific steps are unknown

2. HBase Deployment:

After the installation of the Java environment is successful, the hbase_env.cmd is found in the D:\hbase\conf directory, the text compiler opens, and the Java_home path is set, as follows:
After Setup is complete save, and open Hbase_site.xml, add the following parameters to set the content:
 <Configuration>    < Property>        <name>Hbase.rootdir</name>        <value>File:///D:/hbase/root</value>     </ Property>    < Property>        <name>Hbase.tmp.dir</name>        <value>D:/hbase/tmp</value>    </ Property></Configuration>
Save when you are finished adding. Enter CMD in the address bar of the D:\hbase\bin directory, enter Start-hbase.cmd in the popup cmd command window, and start the HBase database as shown in:
  
When the new pop-up cmd window appears as follows, HBase starts successfully as shown in the following:
  
such as the pop-up cmd window appears "Failed to locate the winutils binary in the Hadoop binary path java.io.IOException:Could not locate Executabl E Null\bin\winutils.exe in the Hadoop binaries. " Error stating that the machine environment is missing winutils.exe files
Workaround:
1. Download winutils version of Windows on GitHub, someone provided the winutils version of Windows, the project address is: Https://github.com/srccodes/hadoop-common-2.2.0-bin, download the ZIP package for this item directly, download the file name is Hadoop-common-2.2.0-bin-master.zip, unzip to a directory
2. Configure Environment variables
Add user variable Hadoop_home, the value is the downloaded Zip package extracted directory, and then add $hadoop_home\bin in the system variable path, run the program again, normal execution.
After starting hbase successfully, download pinpoint initialize the library body script, log on to the Https://github.com/naver/pinpoint/tree/master/hbase/scripts page, In the list, select Hbase-create.hbase, and right-save to local, as shown in: Continue typing in the cmd window before entering the start-hbase.cmd command: HBase shell% initialize library save path%/ Hbase-create.hbase, enter in the browser after the library body initialization is completeHttp://localhost:16010/master-status, you can see if the library initialization was successful. As shown:

3. Pinpoint-collector Deployment:

Unzip the first free install apache-tomcat-8.5.27-windows-x64, directory renamed to Tomcat-pp-col
Unzip the Pinpoint-collector-1.7.1.war and copy the Meta-inf, monitor, and Web-inf directories in the extracted directory to the \\Tomcat-pp-col\webapps\ROOT directory, overwriting the relevant documents
After modifying the relevant ports in the Server.xml in the \\Tomcat-pp-col\conf directory, it is recommended to add 1 before all port numbers, such as: 18080,18443,18009
Start Tomcat after configuration is complete

4. Pinpoint-web Deployment

Unzip the second free install apache-tomcat-8.5.27-windows-x64, directory renamed to Tomcat-pp-web
Unzip the Pinpoint-web-1.7.1.war and copy all directories and files from the extracted directory to the \\Tomcat-pp-web\webapps\ROOT directory, overwriting the relevant documents
After modifying the relevant ports in the Server.xml in the \\Tomcat-pp-web\conf directory, it is recommended to add 1 before all port numbers, such as: 28080,28443,28009
Start Tomcat after configuration is complete

5. Pinpoint-agent Deployment

Copy the Pinpoint-agent compressed package pinpoint-agent-1.7.1.tar.gz to the Web server and unzip it, after extracting the \ Locate the Pinpoint.config file in the pinpoint-agent-1.7.1 directory, modify the configuration parameters of the collector server as follows: Note: If the Web service and pinpoint system are deployed on the same server, Profiler.collector.ip can be set to localhost, otherwise set to Profiler.collector server IP address.
Save after configuration is complete.

6. Web Server Monitoring Configuration

Web server monitoring here with Tomcat as an example, other types are explained later.
Locate the Catalina.bat file under the monitored Tomcat directory \\Tomcat\bin, and use the text compiler to add the following parameters to it:
-javaagent:d:/java_software/pinpoint/pinpoint-agent-1.7.1/pinpoint-bootstrap-1.7.1.jar #设置 \ Pinpoint-bootstrap-1.7.1.jar path under the pinpoint-agent-1.7.1 directory
-dpinpoint.applicationname=jforum #设置被监控程序名称, globally unique
-dpinpoint.agentid=jforum32tomcat #设置采集器agent的id名称, globally unique
Start all of the Tomcat and HBase databases that you applied to after saving successfully
After Tomcat starts successfully, enter http://localhost:28080 carriage return in the browser that deploys the Pinpoint-web server to display the following interface: Select the appropriate monitored application name, and the system displays information about the app, as shown in: Monitor the real-world project stand-alone environment as shown in:

  

  

  

Pinpoint under the Win7.

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.