Configure and Validate Apache Falcon
Note | |
---|---|
In HDP-2.3.4, if authorization is enabled (for example, in the startup.properties file with
|
Upgrade Apache Falcon after you have upgraded HDFS, Hive, Oozie, and Pig. Stop Oozie jobs while running Falcon.
Important | |
---|---|
We recommend upgrading Falcon from HDP 2.1 to HDP 2.2 and then upgrading from HDP 2.2 to HDP 2.3. |
Upgrade Falcon from HDP 2.1 to HDP 2.2
Upgrade Falcon from HDP 2.1 to HDP 2.2.
RHEL/CentOS/Oracle 6
Download the HDP 2.2.9 hdp.repo file:
wget -nv http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.9.0/hdp.repo -0 /etc/yum.repos.d/hdp.repo
Install the HDP 2.2.9 version of Falcon:
yum install "falcon"
SLES 11 SP 1
Download the HDP 2.2.9 hdp.repo file:
wget -nv http://public-repo-1.hortonworks.com/HDP/sles11sp1/2.x/updates/2.2.9.0/hdp.repo -O /etc/zypp/repos.d/hdp.repo
Install the HDP 2.2.9 version of Falcon:
zypper install "falcon"
SLES 11 SP3/SP4
Download the HDP 2.2.9 hdp.repo file:
http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.2.9.0/hdp.repo -O /etc/zypp/repos.d/hdp.repo
Install the HDP 2.2.9 version of Falcon:
zypper install "falcon"
Ubuntu 12
Download the HDP 2.2.9 hdp.repo file:
wget http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/updates/2.2.9.0/hdp.list -O /etc/apt/sources.list.d/hdp.list
Install the HDP 2.2.9 version of Falcon:
apt-get install "falcon"
Debian 6
Download the HDP 2.2.9 hdp.repo file:
wget -nv http://public-repo-1.hortonworks.com/HDP/debian6/2.x/updates/2.2.9.0/hdp.list -O /etc/apt/sources.list.d/hdp.list
Install the HDP 2.2.9 version of Falcon:
apt-get install "falcon"
Verify start.properties. In Falcon 2.2, TLS is enabled by default. When TLS is enabled, Falcon starts on
https:/<falcon_host>:15443/.
You can disable TLS by adding the following line in startup.properties:*.falcon.enableTLS=false
Verify the
client.properties
file. If TLS is disabled, make sure the propertyfalcon.url
is set as follows:falcon.url=http://localhost:15000/
Install the hotfix provided by Hortonworks customer support to migrate entities in bulk.
Restart Falcon.
su - falcon -c "cd /usr/hdp/2.2.9.0-$BUILD/falcon/bin/falcon-start"
Run Falcon CLI to update Falcon entities from HDP 2.1 to HDP 2.2. This script also updates the ownership and permissions of staging and working directories of cluster entitles. Run this script as user falcon.
falcon upgrade -owner hrt_qa -group users -configDir <falcon_config_store> -backupDir/tmp/
Where:
Owner
andgroup
are used to set ACL for Falcon entities.configDir
refers to the location where Falcon stores its entities. This directory should be the same location as the value of property*.config.store.uri
in the fileconf/startup.properties
.backupDir
is the location where Falcon 2.1 entitles are copied as backup. User can restore entities from this directory.
Restart Falcon.
su - falcon -c "cd /usr/hdp/2.2.9.0-$BUILD/falcon/bin/falcon-start"
Replace your configuration after upgrading. Copy
/etc/falcon/conf
from the template to the conf directory in falcon hosts.Check your Falcon entities. There should be no changes, but in some cases you may need to update your entities post-upgrade.
Upgrade Falcon from HDP 2.2 to HDP 2.3
RHEL/CentOS/Oracle 6
On all Falcon hosts, clean the yum repository.
yum clean all
Remove the HDP 2.2 Falcon component. This command uninstalls the HDP 2.2 component. It leaves the user data, and metadata, but removes your configurations:
yum erase "falcon*"
Validate that all HDP 2.2 component binaries are uninstalled:
yum list installed | grep @HDP2.2
Remove the HDP 2.2 hdp.repo file:
rm /etc/yum.repos.d/hdp.repo
Install the HDP 2.3.4..0 repo:
Download the hdp.repo file:
wget -nv http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.0/hdp.repo -O /etc/yum.repos.d/hdp.repo
SLES 11 SP 1
On all Falcon hosts, clean the yum repository.
zypper clean -all
Remove the Falcon HDP 2.2 component. This command uninstalls the HDP 2.2 components. It leaves the user data, and metadata, but removes your configurations:
zypper rm "falcon*"
Validate that all HDP 2.2 component binaries are uninstalled:
yum list installed | grep @HDP2.2
Remove the HDP 2.2 hdp.repo file:
rm /etc/zypp/repos.d/hdp.repo
Download the HDP 2.3.4.0 hdp.repo file:
wget -nv http://public-repo-1.hortonworks.com/HDP/sles11sp1/2.x/updates/2.3.4.0/hdp.repo -O /etc/zypp/repos.d/hdp.repo
Install the HDP 2.3.4.0 version of the Falcon component.
zypper install "falcon"
SLES 11 SP3/SP4
On all Falcon hosts, clean the zypper repository.
zypper clean -all
Remove HDP 2.2 Falcon component.
zypper rm "falcon*"
Validate that all HDP 2.2 component binaries are uninstalled:
zypper search --installed-only --repo HDP-2.2.6.0
Remove the HDP 2.2 hdp.repo file:
rm /etc/zypp/repos.d/hdp.repo
Download the HDP 2.3.4.0 hdp.repo file:
http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.3.4.0/hdp.repo -O /etc/zypp/repos.d/hdp.repo
Install the HDP 2.3.4.0 version of the Falcon component. F
zypper install "falcon"
Ubuntu 12
On all Falcon hosts, clean the apt-get repository.
apt-get clean -&-all
Remove the HDP 2.2 Falcon component. This command uninstalls the HDP 2.2 component. It leaves the user data, and metadata, but removes your configurations:
apt-get remove "falcon*"
Validate that all HDP 2.2 component binaries are uninstalled:
yum list installed | grep @HDP2.2
Remove the HDP 2.2 hdp.repo file:
rm /etc/apt/sources.list.d/hdp.list
Download the HDP 2.3.4.0 hdp.repo file:
wget -nv http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.x/updates/2.3.4.0/hdp.list - O /etc/apt/sources.list.d/hdp.list
Run an update:
apt-get update
Install the HDP 2.3.4.0 versions of the Falcon component.
apt-get install "falcon"
Debian 6
On all Falcon hosts, clean the apt-get repository.
apt-get clean
Remove the HDP 2.2 Falcon component. This command uninstalls the HDP 2.2 component. It leaves the user data, and metadata, but removes your configurations:
apt-get remove "falcon*"
Validate that all HDP 2.2 component binaries are uninstalled:
dpkg -l | grep "^ii" | grep hadoop
Remove the HDP 2.2 hdp.repo file:
rm /etc/apt/sources.list.d/hdp.list
Download the HDP 2.3.4.0 hdp.repo file:
wget -nv http://public-repo-1.hortonworks.com/HDP/debian6/2.x/updates/2.3.4.0/hdp.list - O /etc/apt/sources.list.d/hdp.list
Run an update:
apt-get update
Install the HDP 2.3.4.0 versions of the Falcon component.
apt-get install "falcon"
Verify start.properties. In Falcon 2.3.4, TLS is enabled by default. When TLS is enabled, Falcon starts on
https:/<falcon_host>:15443/.
You can disable TLS by adding the following line in startup.properties:*.falcon.enableTLS=false
Verify the
client.properties
file. If TLS is disabled, make sure the propertyfalcon.url
is set as follows:falcon.url=http://localhost:15000/
Install the hotfix provided at
https://hortonworks.jire.com/browse/BUG-32579
.Restart Falcon.
su - falcon -c "cd /usr/hdp/2.3.4.0-$BUILD/falcon/bin/falcon-start"
Run Falcon CLI to update Falcon entities from HDP 2.1 to HDP 2.2. This script also updates the ownership and permissions of staging and working directories of cluster entitles. Run this script as user falcon.
falcon upgrade -owner hrt_qa -group users -configDir <falcon_config_store> -backupDir/tmp/
Where:
Owner
andgroup
are used to set ACL for Falcon entities.configDir
refers to the location where Falcon stores its entities. This directory should be the ssame location as the value of property*.config.store.uri
in the fileconf/startup.properties
.backupDir
is the location where Falcon 2.1 entitles are copied as backup. User can restore entities from this directory.
Restart Falcon.
su - falcon -c "cd /usr/hdp/2.3.4.0-$BUILD/falcon/bin/falcon-start"
Replace your configuration after upgrading. Copy
/etc/falcon/conf
from the template to the conf directory in falcon hosts.Check your Falcon entities. There should be no changes, but in some cases you may need to update your entities post-upgrade.