Public | Automated Build

Last pushed: a year ago
Short Description
Collection of java example(s) and related technologies
Full Description

java-technologies

Java is Simple, Object Oriented, Distributed, Multithreaded, Dynamic, Architecture neutral, Portable, High performance, Robust, Secure. The Java tutorial are practical guides for programmers who want to use the Java programming language to create applications.

Oracle Java Documentations:

  • Trail Covering the Basics.
  • Creating Graphical User Interfaces (GUI).
  • Specialized Trail and Lessons.

MapReduce

WordCount example reads text files and counts how often words occur. To run mapreduce Hadoop environment is required. Read more To run example:

  • Run mvn clean verify for java-technologies project
  • Optional: Copy .jar file to server which is connected to Hadoop
    • scp -p target/*.jar [server-name]:
  • Assume hdfs location is /user/[user-name]/java-mapreduce
  • Copy resource(s) file to hdfs: hdfs dfs -put /user/[user-name]/java-mapreduce
  • Run command below:

      # syntax: hadoop jar [jar-name].jar [java-class] [input-files] [output-dir]
      hadoop jar java-technologies-0.0.1-SNAPSHOT.jar com.samovich.specialized.mapreduce.WordCount /user/WDPRO-CUSTANALYTICS-PROD/java-mapreduce/*.txt /user/WDPRO-CUSTANALYTICS-PROD/java-mapreduce/output
    

Appendix

  • Java Reference Guide is a free tutorial for syntax and examples.
  • Maven repositories is used to hold build artifacts and dependencies of varying types.
  • JSON Online Editor is a web-based tool to view, edit, and format JSON with tree view.
  • JSON Lint is a web-based JSON Validator.
  • JSON Path is a web-based online tool JSON Path evaluator.
  • Vogella Provides premium Java, Android and Git training and support.
  • Java Brains Learn and advance your Java skills online.
  • Mkyong Java, and Testing Frameworks, Web Services Build Tools examples and etc.
  • Michael Noll Applied Research. Big Data. Distributed Systems. Open Source.

Notes

  • DRY (Don't Repeat Yourself) and other tips from The Pragmatic Programmer
  • SOLID Principles of Object-Oriented Programming:
    • S : Single Responsibility Principle
    • O : Open/Closed Principle
    • L : Liskov Substitution Principle
    • I : Interface Segregation Principle
    • D : Dependency Inversion Principle
Docker Pull Command
Owner
vsamov
Source Repository

Comments (0)