hadoop_add_classpath object [before|after]
Add a file system object (directory, file, wildcard, …) to the classpath. Optionally provide a hint as to where in the classpath it should go.
0 = success (added or duplicate)
1 = failure (doesn’t exist or some other reason)
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_add_colonpath envvar object [before|after]
Add a file system object (directory, file, wildcard, …) to the colonpath. Optionally provide a hint as to where in the colonpath it should go. Prior to adding, objects are checked for duplication and check for existence. Many other functions use this function as their base implementation including hadoop_add_javalibpath and hadoop_add_ldlibpath.
0 = success (added or duplicate)
1 = failure (doesn’t exist or some other reason)
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_add_javalibpath object [before|after]
Add a file system object (directory, file, wildcard, …) to the Java JNI path. Optionally provide a hint as to where in the Java JNI path it should go.
0 = success (added or duplicate)
1 = failure (doesn’t exist or some other reason)
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_add_ldlibpath object [before|after]
Add a file system object (directory, file, wildcard, …) to the LD_LIBRARY_PATH. Optionally provide a hint as to where in the LD_LIBRARY_PATH it should go.
0 = success (added or duplicate)
1 = failure (doesn’t exist or some other reason)
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_add_param envvar checkstring appendstring
Append the appendstring if checkstring is not present in the given envvar
Nothing
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_add_profile shellprofile
Register the given shellprofile to the Hadoop shell subsystem
Nothing
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_deprecate_envvar oldvar newvar
Replace oldvar with newvar if oldvar exists.
Nothing
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_java_exec command class [options]
Execute the Java class, passing along any options. Additionally, set the Java property -Dproc_command.
Nothing
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_java_setup
Configure/verify ${JAVA_HOME}
may exit on failure conditions
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_os_tricks
Routine to configure any OS-specific settings.
may exit on failure conditions
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_status_daemon pidfile
Determine the status of the daemon referenced by pidfile
(mostly) LSB 4.1.0 compatible status
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_stop_daemon command pidfile
Stop the non-privileged command daemon with that that is running at pidfile.
Nothing
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_stop_secure_daemon command daemonpidfile wrapperpidfile
Stop the privileged command daemon with that that is running at daemonpidfile and launched with the wrapper at wrapperpidfile.
Nothing
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_translate_cygwin_path varnameref [true]
Converts the contents of the variable name varnameref into the equivalent Windows path. If the second parameter is true, then varnameref is treated as though it was a path list.
Nothing
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_validate_classname classname
Verify that a shell command was passed a valid class name
0 = success
1 = failure w/user message
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | Yes |
hadoop_debug string
Print a message to stderr if –debug is turned on
Nothing
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | No |
hadoop_error string
Print a message to stderr
Nothing
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | No |
hadoop_exit_with_usage exitcode
Print usage information and exit with the passed exitcode
This function will always exit.
Classification | Level |
---|---|
Audience | Public |
Stability | Stable |
Replaceable | No |
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_add_to_classpath_userpath
Add the user’s custom classpath settings to the environment
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_common_slave_mode_execute commandarray
Utility routine to handle –slaves mode
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_connect_to_hosts command [...]
Connect to ${HADOOP_SLAVES} or ${HADOOP_SLAVE_NAMES} and execute command.
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_connect_to_hosts_without_pdsh command [...]
Connect to ${SLAVE_NAMES} and execute command under the environment which does not support pdsh.
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_daemon_handler [start|stop|status|default] command class daemonpidfile daemonoutfile [options]
Manage a non-privileged daemon.
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_do_classpath_subcommand [parameters]
Perform the ‘hadoop classpath’, etc subcommand with the given parameters
will print & exit with no params
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_exec_hadooprc
Read the user’s settings. This provides for users to override and/or append hadoop-env.sh. It is not meant as a complete system override.
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_finalize
Finish all the remaining environment settings prior to executing Java. This is a wrapper that calls the other finalize routines.
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_finalize_catalina_opts
Finish Catalina configuration prior to execution
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_finalize_classpath
Finish Java classpath prior to execution
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_finalize_hadoop_heap
Finish Java heap parameters prior to execution
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_finalize_hadoop_opts
Finish configuring Hadoop specific system properties prior to executing Java
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_finalize_libpaths
Finish Java JNI paths prior to execution
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_import_shellprofiles
Import shellprofile.d content
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_parse_args [parameters, typically "$@"]
generic shell script opton parser. sets HADOOP_PARSE_COUNTER to set number the caller should shift
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_secure_daemon_handler [start|stop|status|default] command class daemonpidfile daemonoutfile wrapperpidfile wrapperoutfile wrappererrfile [options]
Manage a privileged daemon.
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_setup_secure_service
None
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_shellprofiles_classpath
Apply the shell profile classpath additions
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_shellprofiles_finalize
Apply the shell profile final configuration
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_shellprofiles_init
Initialize the registered shell profiles
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_shellprofiles_nativelib
Apply the shell profile native library additions
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_start_daemon command class pidfile [options]
Start a non-privileged daemon in the foreground.
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_start_daemon_wrapper command class pidfile outfile [options]
Start a non-privileged daemon in the background.
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_start_secure_daemon command class daemonpidfile daemonoutfile daemonerrfile wrapperpidfile [options]
Start a privileged daemon in the foreground.
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_start_secure_daemon_wrapper command class daemonpidfile daemonoutfile wrapperpidfile warpperoutfile daemonerrfile [options]
Start a privileged daemon in the background.
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |
hadoop_verify_logdir
None
Nothing
Classification | Level |
---|---|
Audience | Private |
Stability | Evolving |
Replaceable | Yes |