Javatpoint Logo
Javatpoint Logo

Apache Pig LOG10 Function

The Apache Pig LOG10 function is used to return the base 10 logarithm of an expression.

Syntax

Example of LOG10 Function

In this example, we return the log10 value.

Steps to execute LOG10 Function

  • Create a text file in your local machine and insert the values.
Apache Pig LOG10 Function
  • Check the values inserted in the text files.
Apache Pig LOG10 Function
  • 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.
Apache Pig LOG10 Function
  • Let's return the log10 value.
Apache Pig LOG10 Function

Here, we got the desired output.

Next TopicROUND Function




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA