Created 11-02-2017 07:36 AM
Created 11-02-2017 07:54 AM
The value of falcon.app.type is "falcon" by default. It is passed as a run time parameter while starting falcon server. In your falcon host you can run the below command and see "-Dfalcon.app.type=falcon"
ps -ef | grep falcon
The flow is like this. falcon_start.py -> service_start.py -> service-start.sh . The falcon_start.py passes "falcon" as the argument to service_start.py where falcon is the falcon.app.type. Attaching the snippet below of falcon_start.py
service_start_cmd = os.path.join(base_dir, 'bin', 'service_start.py') subprocess.call(['python', service_start_cmd, 'falcon', other_args])
You can find these scripts under /usr/hdp/<hdp-version>/falcon/bin.
Hope this helps.
Thanks,
Aditya
Created 11-02-2017 07:54 AM
The value of falcon.app.type is "falcon" by default. It is passed as a run time parameter while starting falcon server. In your falcon host you can run the below command and see "-Dfalcon.app.type=falcon"
ps -ef | grep falcon
The flow is like this. falcon_start.py -> service_start.py -> service-start.sh . The falcon_start.py passes "falcon" as the argument to service_start.py where falcon is the falcon.app.type. Attaching the snippet below of falcon_start.py
service_start_cmd = os.path.join(base_dir, 'bin', 'service_start.py') subprocess.call(['python', service_start_cmd, 'falcon', other_args])
You can find these scripts under /usr/hdp/<hdp-version>/falcon/bin.
Hope this helps.
Thanks,
Aditya
Created 11-02-2017 07:54 AM
This is the Falcon Run time option added as a Java System property as following:
# grep 'falcon.app.type' /usr/hdp/current/falcon-server/bin/falcon.distro ${JAVA_BIN} ${JAVA_PROPERTIES} -cp ${FALCONCPPATH} -Dfalcon.log.dir=$HOME -Dfalcon.app.type=client org.apache.falcon.cli.FalconCLI "${@}"
Also in the startup script:
# grep 'falcon.app.type' /usr/hdp/current/falcon-server/bin/service-start.sh JAVA_PROPERTIES="$FALCON_OPTS $FALCON_PROPERTIES -Dfalcon.log.dir=$FALCON_LOG_DIR -Dfalcon.embeddedmq.data=$FALCON_DATA_DIR -Dfalcon.home=${FALCON_HOME_DIR} -Dconfig.location=$FALCON_CONF -Dfalcon.app.type=$APP_TYPE -Dfalcon.catalog.service.enabled=$CATALOG_ENABLED"
.
And the "APP_TYPE=$1" (See Script "service-start.sh") APP_TYPE is passed as an argument while starting the process.
Created 11-02-2017 08:35 AM
Thanks Aditya
Created 11-02-2017 08:36 AM
Thanks Jay