Configure and Validate Apache Falcon
![]() | Note |
|---|---|
In HDP-2.5, if authorization is enabled (for example, in the startup.properties file with
|
Upgrade 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.5. |
Upgrade Apache 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 https://hdpweb.o.onslip.net/HDP/centos<version>/2.x/updates/2.2.9.0/hdp.repo -0 /etc/yum.repos.d/hdp.repoInstall the HDP 2.2.9 version of Falcon:
yum install "falcon"
SLES
Download the HDP 2.2.9 hdp.repo file:
wget -nv https://hdpweb.o.onslip.net/HDP/sles11sp1/2.x/updates/2.2.9.0/hdp.repo -O /etc/zypp/repos.d/hdp.repoInstall the HDP 2.2.9 version of Falcon:
zypper install "falcon"
SLES
Download the HDP 2.2.0 hdp.repo file:
https://hdpweb.o.onslip.net/HDP/suse11sp3/2.x/updates/2.2.9.0/hdp.repo -O /etc/zypp/repos.d/hdp.repoInstall the HDP 2.2.9 version of Falcon:
zypper install "falcon"
Ubuntu 12
Download the HDP 2.2 hdp.repo file:
wget https://hdpweb.o.onslip.net/HDP/ubuntu12/2.x/updates/2.2.9.0/hdp.list -O /etc/apt/sources.list.d/hdp.listInstall the HDP 2.2.9 version of Falcon:
apt-get install "falcon"
Debian
Download the HDP 2.2 hdp.repo file:
wget -nv https://hdpweb.o.onslip.net/HDP/debian<version>/2.x/updates/2.2.9.0/hdp.list -O /etc/apt/sources.list.d/hdp.listInstall 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=falseVerify the
client.propertiesfile. If TLS is disabled, make sure the propertyfalcon.urlis 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:
Ownerandgroupare used to set ACL for Falcon entities.configDirrefers to the location where Falcon stores its entities. This directory should be the ssame location as the value of property*.config.store.uriin the fileconf/startup.properties.backupDiris the location where Falcon 2.1 entitles are copied as backup. User can restore entitis 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/conffrom 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.5
RHEL/CentOS/Oracle 6
On all Falcon hosts, clean the yum repository.
yum clean allRemove 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.2Remove the HDP 2.2 hdp.repo file:
rm /etc/yum.repos.d/hdp.repoInstall the HDP 2.5.3 repo:
Download the hdp.repo file:
wget -nv https://hdpweb.o.onslip.net/HDP/centos<version>/2.x/updates/2.5.3.0/hdp.repo -O /etc/yum.repos.d/hdp.repo
SLES
On all Falcon hosts, clean the yum repository.
zypper clean -allRemove 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.2Remove the HDP 2.2 hdp.repo file:
rm /etc/zypp/repos.d/hdp.repoDownload the HDP 2.5.3 hdp.repo file:
wget -nv https://hdpweb.o.onslip.net/HDP/sles11sp1/2.x/updates/2.5.3.0/hdp.repo -O /etc/zypp/repos.d/hdp.repo
Install the HDP 2.5.3 version of the Falcon component.
zypper install "falcon"
SLES
On all Falcon hosts, clean the zypper repository.
zypper clean -allRemove 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.0Remove the HDP 2.2 hdp.repo file:
rm /etc/zypp/repos.d/hdp.repoDownload the HDP 2.5.3 hdp.repo file:
https://hdpweb.o.onslip.net/HDP/suse11sp3/2.x/updates/2.5.3.0/hdp.repo -O /etc/zypp/repos.d/hdp.repoInstall the HDP 2.5.3 version of the Falcon component. F
zypper install "falcon"
Ubuntu 12
On all Falcon hosts, clean the apt-get repository.
apt-get clean -&-allRemove 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.2Remove the HDP 2.2 hdp.repo file:
rm /etc/apt/sources.list.d/hdp.listDownload the HDP 2.5.3 hdp.repo file:
wget https://hdpweb.o.onslip.net/HDP/ubuntu12/2.x/updates/2.5.3.0/hdp.list - O /etc/apt/sources.list.d/hdp.listRun an update:
apt-get updateInstall the HDP 2.5.3 versions of the Falcon component.
apt-get install "falcon"
Debian
On all Falcon hosts, clean the apt-get repository.
apt-get cleanRemove 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 hadoopRemove the HDP 2.2 hdp.repo file:
rm /etc/apt/sources.list.d/hdp.listDownload the HDP 2.5.3 hdp.repo file:
wget -nv https://hdpweb.o.onslip.net/HDP/debian<version>/2.x/updates/2.5.3.0/hdp.list - O /etc/apt/sources.list.d/hdp.listRun an update:
apt-get updateInstall the HDP 2.5.3 versions of the Falco component.
apt-get install "falcon"
Verify start.properties. In Falcon 2.5, 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=falseVerify the
client.propertiesfile. If TLS is disabled, make sure the propertyfalcon.urlis set as follows:falcon.url=http://localhost:15000/Restart Falcon.
su - falcon -c "cd /usr/hdp/2.5.3.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:
Ownerandgroupare used to set ACL for Falcon entities.configDirrefers to the location where Falcon stores its entities. This directory should be the ssame location as the value of property*.config.store.uriin the fileconf/startup.properties.backupDiris the location where Falcon 2.1 entitles are copied as backup. User can restore entitis from this directory.
Restart Falcon.
su - falcon -c "cd /usr/hdp/2.5.3.0-$BUILD/falcon/bin/falcon-start"
Replace your configuration after upgrading. Copy
/etc/falcon/conffrom 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.


![[Note]](../common/images/admon/note.png)
![[Important]](../common/images/admon/important.png)