127
Apache Pig LOG Function
The Apache Pig LOG function is used to return the natural logarithm (base e) of an expression.
Syntax
Example of LOG Function
In this example, we return the log value.
Steps to execute LOG Function
- Create a text file in your local machine and insert the values.
- Check the values inserted in the text files.
- Upload the text files on HDFS in the specific directory.
- Open the pig MapReduce run mode.
- Load the file that contains the data.
- Now, execute and verify the data.
- Let’s return the log value.
Here, we got the desired output.
Next TopicLOG10 Function