I have written a MapReduce job that takes 3 Command Line Arguments - keyword,input path,output path. It counts the number of times the keyword appears in the input files and outputs the same. I want to create a webpage (maybe using Apache Tomcat) wherein it takes the keyword as input. When I click on submit , it should trigger a MapReduce job and output the results on the webpage itself. How is this possible ?. I have tried all answers on the following links and they don't work
If it is possible please provide a sample working code . It would be really helpful
Edit:
When I tried the 2nd solution in the 2nd link the issue is this