Support Questions
Find answers, ask questions, and share your expertise

Java coding standards for Hadoop

Java coding standards for Hadoop

Explorer

Hi,

I am trying to develop some MapReduce and UDF's. Wondering if there are any specific coding standards for Java in Hadoop. I could not find any in google. The google coding style is for complete Java programming. The coding standard in Oracle site seems to be an old one.

Could you share some details if there are anything specific for Java used in Hadoop.

Thank you.

2 REPLIES 2

Re: Java coding standards for Hadoop

Explorer

Hi,

Hadoop has an own checkstyle ruleset.

Please find in hadoop-build-tools/src/main/resources/checkstyle/ folder or

https://github.com/apache/hadoop/tree/trunk/hadoop-build-tools/src/main/resources/checkstyle/

It is important that they use 2 spaces for indentation and 80 character as line length limit.