使用tomcat用jsp来访问HDFS,需要怎么配置tomcat呢?
Configuration conf=new Configuration();这一行老是报错Configuration cannot be resolved to a type。
还有就是Unable to compile class for JSP.这个该怎么处理呢?
使用tomcat用jsp来访问HDFS,需要怎么配置tomcat呢?
Configuration conf=new Configuration();这一行老是报错Configuration cannot be resolved to a type。
还有就是Unable to compile class for JSP.这个该怎么处理呢?
需要导入Hadoop的jar包,这样Configuration就不会报错了,然后得到hdfs的FileSystem就能操作hdfs的文件了