Upgrading HttpFS
Complete the following steps to upgrade HttpFS:
- Update repositories or download packages.
MapR's
rpm
anddeb
repositories always contain the HttpFS version recommended for the latest release of the MapR core. For more details on setting up repositories, see Preparing Packages and Repositories.-
If you plan to install from a repository, update the repository cache on each node where HttpFS is installed:
- RedHat/CentOS
# yum clean all
- SUSE
# zypper refresh
- Ubuntu
# apt-get update
- RedHat/CentOS
-
- Backup configuration files.
If you have changed configuration properties, save configuration files to a backup location on all nodes where HttpFS is installed. For example, you may want to backup the following configuration files:
/opt/mapr/httpfs/httpfs-1.0/share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/web.xml
/opt/mapr/httpfs/httpfs-1.0/share/hadoop/httpfs/tomcat/conf/server.xml
/opt/mapr/httpfs/httpfs-1.0/share/hadoop/httpfs/tomcat/conf/tomcat-users.xml
- Uninstall HttpFS and install a new HttpFS package.
Run the following set of commands as
root
or withsudo
:- RedHat/CentOS
yum remove mapr-httpfs rm -rf /opt/mapr/httpfs/ yum install mapr-httpfs
- Ubuntu
apt-get autoremove mapr-httpfs rm -rf /opt/mapr/httpfs/ apt-get install mapr-httpfs
- SUSE
zypper remove mapr-httpfs rm -rf /opt/mapr/httpfs/ zypper install mapr-httpfs
- RedHat/CentOS
- Migrate HttpFS configuration.
If you saved configuration files to a backup location, migrate the custom configuration settings from the backup location to the installation folder.
- Start HttpFS
services.
sudo -u mapr /opt/mapr/httpfs/httpfs-1.0/sbin/httpfs.sh start