@InterfaceAudience.LimitedPrivate(value="Oozie") @InterfaceStability.Stable public class Main extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
PROGRESS_NOTIFICATION_LISTENER_ARG_KEY |
protected static String |
PROGRESS_NOTIFICATION_LISTENER_KEY |
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
static boolean |
dryrun(String scriptFile,
PigContext pigContext) |
static String |
getBuildTime()
Returns the built time of the Pig build being run.
|
static String |
getMajorVersion()
Returns the major version of Pig being run.
|
static String |
getMinorVersion()
Returns the major version of the Pig build being run.
|
static String |
getPatchVersion()
Returns the patch version of the Pig build being run.
|
static String |
getSvnRevision()
Returns the svn revision number of the Pig build being run.
|
static String |
getVersionString()
Returns a version string formatted similarly to that of svn.
|
static void |
main(String[] args)
The Main-Class for the Pig Jar that will provide a shell and setup a classpath appropriate
for executing Jar files.
|
protected static PigProgressNotificationListener |
makeListener(Properties properties) |
static void |
printProperties() |
static void |
usage()
Print usage string.
|
protected static final String PROGRESS_NOTIFICATION_LISTENER_KEY
protected static final String PROGRESS_NOTIFICATION_LISTENER_ARG_KEY
public static void main(String[] args)
args
- -jar can be used to add additional jar files (colon separated). - will start a
shell. -e will execute the rest of the command line as if it was input to the
shell.IOException
protected static PigProgressNotificationListener makeListener(Properties properties)
public static boolean dryrun(String scriptFile, PigContext pigContext) throws org.antlr.runtime.RecognitionException, IOException
org.antlr.runtime.RecognitionException
IOException
public static String getMajorVersion()
public static String getMinorVersion()
public static String getPatchVersion()
public static String getSvnRevision()
public static String getBuildTime()
public static String getVersionString()
Apache Pig version 0.11.0-SNAPSHOT (r1202387) compiled Nov 15 2011, 15:22:09
public static void usage()
public static void printProperties()
Copyright © 2007-2017 The Apache Software Foundation