Ambari Server
Setup
- RHEL/CentOS 7
- RHEL/CentOS/RockyLinux 8
- Ubuntu 22.04
sudo yum install -y ambari-server
sudo dnf install -y ambari-server
sudo apt install -y ambari-server
Configuration
Before starting the Ambari server, you need to configure it.
The installer configures Ambari to communicate with the Ambari database, installs the JDK, and allows you to customize the user account under which the Ambari server daemon will run.
The following command handles the configuration process. Run the following command on the Ambari server host to start the configuration process. You can also add configuration options to the order.
sudo su -
ambari-server setup
The following options are frequently used for Ambari server configuration.
-j | --java-home
Specifies the JAVA_HOME
path to use on the Ambari server and all nodes in the cluster.
By default, when you do not specify this option, the Ambari Server configuration downloads the Oracle JDK 1.8 binary and associated Java Cryptography Extension (JCE) policy files to /var/lib/ambari-server/resources
. Ambari Server then installs the JDK in /usr/jdk64
.
This path must be valid on all nodes. For example :
ambari-server setup –j /usr/java/default
--jdbc-driver
This should be the path to the JDBC driver JAR file. Use this option to specify the location of the JDBC driver JAR and to make this JAR available on the Ambari server for distribution to cluster hosts during configuration. Use this option with the --jdbc-db
option to specify the database type.
--jdbc-db
Specifies the database type. Valid values are: [postgres
| mysql
| mariadb
] Use this option with the --jdbc-driver
option to specify the location of the JDBC driver JAR file.
-s | --silent
The installer runs silently. Accepts all default prompt values, such as:
root
user account for the Ambari server.- Oracle 1.8 JDK (installed in /usr/jdk64). This can be overridden by adding the -j option and specifying an existing JDK path.
- Integrated PostgreSQL for Ambari DB (with database name "ambari").
--enable-lzo-under-gpl-license
Use this option to download and install LZO compression, which is subject to the General Public License.
-v | --verbose
Prints detailed information and warning messages to the console during installation.
-g | --debug
Prints debug information to the console during installation.