Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

What is the value of ${falcon.app.type} and where is defined in falcon?

avatar
 
1 ACCEPTED SOLUTION

avatar
Super Guru

@Palash Dutta,

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

View solution in original post

4 REPLIES 4

avatar
Super Guru

@Palash Dutta,

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

avatar
Master Mentor

@Palash Dutta

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.

avatar

@Aditya Sirna

Thanks Aditya

avatar