Skip to content

Instantly share code, notes, and snippets.

View icemagno's full-sized avatar

Carlos Magno Oliveira de Abreu icemagno

View GitHub Profile
#Hadoop 2.6.0 Multinode cluster Setup
From Blog http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node-cluster/
###Machine 1(master).
Prequisite:
java version
java -version
@icemagno
icemagno / 1-description.md
Last active August 29, 2015 14:01
Upload files with Java and Struts2

This document shows how to upload a photo by using Struts2 action. Things to note:

The HTML form must have

enctype="multipart/form-data" method="POST"

Your S2 Action must have the attributes to receive the raw file and the file name. The raw file attibute name is the same you created in HTML form and the file name attribute is that name plus "FileName" word.