Installation services CDH 6.3 in Phoenix

table of Contents

First, download and install Phoenix parcel

Second, install the CSD file

Third, add the service in Cloudera Manager in Phoenix (provided that the HBase services has been installed)

Four, arranged for Phoenix HBase

Fifth, installation verification Phoenix

reference:


First, download and install Phoenix parcel

1. Log Cloudera Manager, click "cluster" -> "Parcel", enter Parcel page.
2. Click on "Configuration", add a remote Phoenix Parcel URL, shown in Figure 1, and then save the changes.

figure 1


3. Parcel page Download hoenix Parcel, as shown in FIG.

figure 2


4. After the download is complete, click on the "distribution", as shown in FIG.

image 3


5. After the assignment is done, click on the "active", as shown in FIG.

Figure 4

Second, install the CSD file

Before adding Phoenix service in CDH, you must install Custom Service Descriptor (CSD) file.

1. Determine the CSD file location.
Log Cloudera Manager, click "Management" -> "Settings", click on "Customize service descriptor" to see "Local Descriptor repository path", shown in Figure 5.

Figure 5

2. CSD downloaded to a local file repository path descriptor, and then restart the Cloudera Manager server.
Login Cloudera Manager resides Host execute the following command:

cd /opt/cloudera/csd
wget https://username:[email protected]/phoenix/6.2.0/csd/PHOENIX-1.0.jar
systemctl restart cloudera-scm-server

3. Log Cloudera Manager, Cloudera Management Service to restart the service, as shown in Figure 6.

Figure 6

Third, add the service in Cloudera Manager in Phoenix (provided that the HBase services has been installed)

After installation is complete, Phoenix appears in the service list, as shown in FIG.

Figure 7

Four, arranged for Phoenix HBase

1. Add property
Select "Hbase" -> "Configure" search "hbase-site.xml the HBase services advanced configuration snippet", click "View in XML format", and add the following attributes:

<property>
<name>hbase.regionserver.wal.codec</name>
<value>org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec</value>
</property> 

<property>
 <name>phoenix.functions.allowUserDefinedFunctions</name>
 <value>true</value>
 <description>enable UDF functions</description>
</property>
  • The hbase.regionserver.wal.codec definitions written write-ahead log ( "wal") coding.
  • Set phoenix.functions.allowUserDefinedFunctions property enables user-defined function (UDF).

2. Restart Hbase Service

Fifth, installation verification Phoenix

Login cluster host, at the command prompt and run the following smoke test:

phoenix-psql /opt/cloudera/parcels/PHOENIX-5.0.0-cdh6.2.0.p0.1308267/lib/phoenix/examples/WEB_STAT.sql /opt/cloudera/parcels/PHOENIX-5.0.0-cdh6.2.0.p0.1308267/lib/phoenix/examples/WEB_STAT.csv /opt/cloudera/parcels/PHOENIX-5.0.0-cdh6.2.0.p0.1308267/lib/phoenix/examples/WEB_STAT_QUERIES.sql

reference:

Installing Apache Phoenix using Cloudera Manager

Published 370 original articles · won praise 599 · Views 2.18 million +

Guess you like

Origin blog.csdn.net/wzy0623/article/details/104766465