| 1. |
How Do Users Interact With The Shell In Apache Pig? |
|
Answer» Using Grunt i.e. Apache Pig’s interactive SHELL, users can interact with HDFS or the local file system. To start Grunt, users should INVOKE Apache Pig with no command: Executing the command “pig –x local” will result in the PROMPT - grunt > This is where PigLatin SCRIPTS can be run either in local mode or in cluster mode by setting the configuration in PIG_CLASSPATH. To exit from grunt shell, press CTRL+D or just type exit. Using Grunt i.e. Apache Pig’s interactive shell, users can interact with HDFS or the local file system. To start Grunt, users should invoke Apache Pig with no command: Executing the command “pig –x local” will result in the prompt - grunt > This is where PigLatin scripts can be run either in local mode or in cluster mode by setting the configuration in PIG_CLASSPATH. To exit from grunt shell, press CTRL+D or just type exit. |
|