页面树结构

2017-11-09 ApacheCN 开源组织,第二期邀请成员活动,一起走的更远 : http://www.apachecn.org/member/209.html


MachineLearning 优酷地址 : http://i.youku.com/apachecn

转至元数据结尾
转至元数据起始

 

查看cloudera-scm-server的log如下:

2016-03-15 14:09:43,313 WARN 653222119@scm-web-0:com.cloudera.server.web.cmf.csrf.CsrfRefererInterceptor: Rejecting request originating from xx.xx.xx.xx for http://xxx.xxxx.lo/cmf/express-wizard/wizard with referrer http://xxx.xxxx.lo

 

解决方案:
经过各种cloudera community search 、google search 、baidu、yahoo都没找到解决方法,想通过nginx 配置解决也没实现
查看cloudera-manager-server的配置也没有找到csrf相关配置。决定grep安装目录的csrf,直接注释掉然后重启cloudera-manager-server
[root@xx.xx.xx.xx cloudera-scm-server]# cd /usr/share/cmf/
[root@xx.xx.xx.xx cmf]# grep -i -r  csrf  ./
Binary file ./cloudera-navigator-server/libs/cdh5/hadoop-yarn-server-nodemanager-2.6.0-cdh5.5.0.jar matches
Binary file ./common_jars/hadoop-yarn-server-nodemanager-2.6.0-cdh5.5.0.jar matches
Binary file ./common_jars/server-5.6.0.jar matches
Binary file ./common_jars/hadoop-yarn-server-resourcemanager-2.5.0-cdh5.3.2.jar matches
./webapp/WEB-INF/spring/mvc-config.xml:                <bean class="com.cloudera.server.web.cmf.csrf.CsrfRefererInterceptor" />
Binary file ./lib/cdh5-java6/hadoop-yarn-server-resourcemanager-2.5.0-cdh5.3.2.jar matches
Binary file ./lib/server-5.6.0.jar matches
Binary file ./lib/cdh5/hadoop-yarn-server-nodemanager-2.6.0-cdh5.5.0.jar matches
[root@xx.xx.xx.xx cmf]# vi ./webapp/WEB-INF/spring/mvc-config.xml
注释掉这个bean,然后重启server,在访问nginx,整个世界清净了·~~~~~~~~~~~~~~~~~~~~~~~~~~·
              <!--  <bean class="com.cloudera.server.web.cmf.csrf.CsrfRefererInterceptor" /> -->

 

参考地址:

http://www.bigzhuang.com/article/clouderaserverwebcmfcsrfCsrfRefererInterceptor.html

  • 无标签