Sign inSign up

vsamov/java-technologies

By vsamov

Updated almost 10 years ago

Collection of java example(s) and related technologies

Image
0

10K+

vsamov/java-technologies repository overview

java-technologies Build Status license Docker Automated buil

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

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

Tag summary

Content type

Image

Digest

Size

243.8 MB

Last updated

almost 10 years ago

docker pull vsamov/java-technologies