Environment configuration before iServer uses Hadoop Yarn cluster |
If you already have an available Hadoop Yarn cluster (including a Hadoop Yarn cluster with Kerberos authentication enabled and a Hadoop Yarn cluster without Kerberos authentication enabled), this chapter will walk you through the environment preparation before using the Hadoop Yarn cluster in the distributed analysis service.
If you're using a Hadoop Yarn cluster with Kerberos authentication enabled, you need to perform all the steps below; if you're using a a Hadoop Yarn cluster without Kerberos authentication enabled, you only need to configure steps 3 and 4.
[libdefaults]
default_realm = SUPERMAP.COM
[realms]
SUPERMAP.COM = {
kdc = 192.168.112.162
admin_server = 192.168.112.162
}
spark.yarn.am.memory 4g
This parameter represents the memory size of the application master. If not set, the default is 512M. It is recommended to modigy it to 4G to ensure that the iServer distributed analysis service can be used normally. Users can allocate according to the memory of their own machines.
If you are using the Windows version of iServer, you need to add the following configuration:
spark.hadoop.yarn.resourcemanager.hostname hostname
Among which, the hostname should be set to the hostname of the primary node of the yarn cluster. For more configurations, see: http://spark.apache.org/docs/latest/running-on-yarn.html.
kadmin.local
#Create a user
addprinc -randkey iserver@SUPERMAP.COM
#Generate a key file (generated to the current path)
xst -k yarn.keytab iserver@SUPERMAP.COM
Copy the generated key file to any location on the same computer as the iServer service.