Try combining this hortonworks MapReduce tutorial and the Giraph Quick Start.
The former shows you how to create a shared folder and copy files between your local and virtual machines. Create a Giraph jar (using the second link), place in the hue Home Directory, give it relevant permissions, and create an input file (as detailed in first link).
When creating the Giraph jar you will need to compile against Hadoop 2 - I did this using the command mvn -Phadoop_2.0.0 package
from the Giraph root directory.
Depending on the version of Giraph you are using you may have problems with running as described in the second link, I found
hadoop jar giraph.jar org.apache.giraph.GiraphRunner org.apache.giraph.examples.SimpleShortestPathsVertex -vif org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat -vip /user/hue/tinygraph.txt -of org.apache.giraph.io.formats.IdWithValueTextOutputFormat -op /user/hue/output/shortestpaths -w 1
worked for me (note the difference in the specifying the output format using -of instead of -vof, and using SimpleShortestPathsVertex instead of SimpleShortestPathsComputation.
When running the jar I ran into an exception
java.lang.IllegalArgumentException: "checkLocalJobRunnerConfiguration: When using
"LocalJobRunner, you cannot run in split master / worker mode since there is only 1 task at a time!"
which I fixed by adding the line
job.getConfiguration().setBoolean("giraph.SplitMasterWorker", false);
to org.apache.giraph.GiraphRunner.java in giraph-core.
I also ran into problems with ZooKeeper ports, which I detailed with a work around here.
Hope this helps!