Hi Mark, Yes, This should be possible.
Solution: If you modify the FileItemSimilarity class to take hdfs file path in your spring application and use HDFS file APIs to read the similarity data file from HDFS. In the URI though, you must specify the complete path to your HDFS file like hdfs://hostname:port/<path to the file> -Bharath ________________________________ From: Mark <[email protected]> To: "<[email protected]>" <[email protected]> Sent: Sunday, June 26, 2011 5:34 PM Subject: Reading HDFS files via Spring Hello all, We have a recommendation system that reads in similarity data via a Spring context.xml as follows: <bean id="similarity" class="org.apache.mahout.cf.taste.impl.similarity.file.FileItemSimilarity"> <constructor-arg value="/var/data/similarity.data"/> </bean> Is it possible to use Hadoop/HDFS with Spring? We would love to be able to use something like: <constructor-arg value="hdfs://user/mark/similarity.data"> Can this (easily) be accomplished? Thanks for the help
