分享

hadoop内嵌jetty加载webapps问题

u010278619 发表于 2013-10-16 13:39:02 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 6161
Hadopp中封装Jetty的HttpServer类中有下面的代码
final String appDir = getWebAppsPath();
webAppContext = new WebAppContext();
webAppContext.setWar(appDir + "/" + name);
protected String getWebAppsPath() throws IOException {
    URL url = getClass().getClassLoader().getResource("webapps");
    if (url == null)
      throw new IOException("webapps not found in CLASSPATH");
    return url.toString();
  }
求问hadoop是不是把webapps项目加载进jetty?那它加载的是安装后根目录下面的那个webapps文件夹还是加载的hadoop-core-1.0.3.jar里面的webapps?
              
               
                    hadoop
                    jetty
               

已有(1)人评论

跳转到指定楼层
s060403072 发表于 2013-10-16 13:39:33

            这个简单,移除hadoop-core-1.0.3.jar,再试试看
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条