To upgrade an existing Arcadia Enterprise service to a newer version, perform these tasks:
Here, note the place holders:
user_name
is the account of the user with administrative
privileges (and root access) and password
it its passwordambari_hostname
is the name of the Ambari Stacks host and
port
is the port used, typically 8080
cluster_name
is the name of the clusterhdp_version
is the version of the HDP, such as 2.3, 2.4, 2.6, and
so onrelease_tarball_id
is the suffix of the tar file name, such as
4.0.0.0_1491274848-1
Follow these steps the remove Arcadia service from Ambari Stacks, without removing the installed rpm:
$ curl -u username:password
-i -H 'X-Requested-By: ambari'
-X DELETE http://ambari_hostname:port/api/v1/clusters/cluster_name/services/ARCADIAENTERPRISE
You should see a system response that looks somewhat like this:
HTTP/1.1 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
User: admin
Set-Cookie: AMBARISESSIONID=3adp7jpq26cu1rajlic2qbxv;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 0
Server: Jetty(8.1.17.v20150415)
Update the Arcadia file sources to the new version; this involves removing the old folder and copying the new folder to its location.
Run the following commands at the root:
Remove the folder that contains the older Arcadia source files from the
/services
directory.
$ sudo rm -rf /var/lib/ambari-server/resources/stacks/HDP/hdp_version/services/ARCADIA-ENTERPRISE
Extract the zipped tar of new Arcadia files.
$ tar -xvzf ARCADIA-ENTERPRISE-release_tarball_id.tar.gz
Copy the extracted contents into the /services
directory.
$ sudo cp -R ARCADIA-ENTERPRISE /var/lib/ambari-server/resources/stacks/HDP/hdp_version/services/
Re-start the Ambari server.
$ sudo service ambari-server restart
After completing the previous tasks, add Arcadia Enterprise service through the Ambari Stacks UI, as described in Add Arcadia Enterprise to Ambari Services.