简体   繁体   English

WSO2 AM 1.8与WSO2 BAM 2.5集成

[英]WSO2 AM 1.8 integration with WSO2 BAM 2.5

I am trying to integrate WSO2 BAM 2.5 with WSO2 AM 1.8 by referring this document. 我正在尝试通过参考本文档将WSO2 BAM 2.5WSO2 AM 1.8集成在一起。 . https://docs.wso2.com/display/AM150/Monitoring+Using+WSO2+BAM . https://docs.wso2.com/display/AM150/Monitoring+Using+WSO2+BAM But i am getting error in BAM console .I configured it in windows 7.Any help to fix if,Thanks in advance 但是我在BAM控制台中遇到错误。我在Windows 7中配置了它。

Error 错误

[2015-01-13 14:34:03,045] WARN {org.apache.hadoop.security.ShellBasedUnixGroupsMapping} - got exception trying to get groups for user Jamshi org.apache.hadoop.util.Shell$ExitCodeException: id: Jamshi: no such user [2015-01-13 14:34:03,045]警告{org.apache.hadoop.security.ShellBasedUnixGroupsMapping}-尝试为用户Jamshi获取组时遇到异常org.apache.hadoop.util.Shell $ ExitCodeException:id:Jamshi:没有这样的用户

  at org.apache.hadoop.util.Shell.runCommand(Shell.java:255) at org.apache.hadoop.util.Shell.run(Shell.java:182) at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:375) at org.apache.hadoop.util.Shell.execCommand(Shell.java:461) at org.apache.hadoop.util.Shell.execCommand(Shell.java:444) at org.apache.hadoop.security.ShellBasedUnixGroupsMapping.getUnixGroups(ShellBasedUnixGroupsMapping.java:68) at org.apache.hadoop.security.ShellBasedUnixGroupsMapping.getGroups(ShellBasedUnixGroupsMapping.java:45) at org.apache.hadoop.security.Groups.getGroups(Groups.java:79) at org.apache.hadoop.security.UserGroupInformation.getGroupNames(UserGroupInformation.java:1030) at org.apache.hadoop.hive.ql.security.HadoopDefaultAuthenticator.setConf(HadoopDefaultAuthenticator.java:62) at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:62) at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117) at org.apache.hadoop.hive.ql.metadata.HiveUtils.getAuthenticator(HiveUtils.java:222) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:270) at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.<init>(HiveServer.java:136) at org.apache.hadoop.hive.jdbc.HiveConnection.<init>(HiveConnection.java:63) at org.apache.hadoop.hive.jdbc.HiveDriver.connect(HiveDriver.java:104) at java.sql.DriverManager.getConnection(DriverManager.java:579) at java.sql.DriverManager.getConnection(DriverManager.java:221) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.getConnection(HiveExecutorServiceI 

mpl.java:577) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java: 224) at org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl$ScriptCallable.call(HiveExecutorServiceImpl.java: 192) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) mpl.java:577),位于org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl $ ScriptCallable.call(HiveExecutorServiceImpl.java:224),位于org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl $ ScriptCallable.call( HiveExecutorServiceImpl.java:192)在java.util.concurrent.FutureTask $ Sync.innerRun(FutureTask.java:334)在java.util.concurrent.FutureTask.run(FutureTask.java:166)在java.util.concurrent.ThreadPoolExecutor .runWorker(ThreadPoolExecutor.java:1110)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:603)at java.lang.Thread.run(Thread.java:722)

When installing BAM on Windows please make sure to follow the corresponding Windows-specific doc: https://docs.wso2.com/display/BAM241/Installing+on+Windows 在Windows上安装BAM时,请确保遵循相应的Windows特定文档: https : //docs.wso2.com/display/BAM241/Installing+on+Windows

According to the doc, try to install Cywin into C drive and make sure no space in file path and add "C:\\cygwin64\\bin" to the windows PATH, also make sure BAM running user has rights to run cygwin commands ( in default nothing to do in windows, unless you may set some special permission ). 根据文档,请尝试将Cywin安装到C驱动器中,并确保文件路径中没有空格,并在Windows PATH中添加“ C:\\ cygwin64 \\ bin”,还请确保BAM运行用户有权运行cygwin命令(默认情况下在Windows中无需执行任何操作,除非您可以设置一些特殊权限)。

Please note that we are not recommending to run BAM in windows in production environment due to compatibility of Cassandra , Hadoop. 请注意,由于Cassandra和Hadoop的兼容性,我们不建议在生产环境的Windows中运行BAM。

If installing cygwin64 doesn't resolve the issue, please attach the conf files in both BAM and APIM (/repository/conf). 如果安装cygwin64无法解决问题,请在BAM和APIM(/ repository / conf)中附加conf文件。

Also, the integration instructions that you are following are for API Manager 1.5.0 (see AM150 in the path). 另外,您遵循的集成说明适用于API Manager 1.5.0(请参阅路径中的AM150)。 This is the 1.8.0 version: https://docs.wso2.com/display/AM180/Publishing+API+Runtime+Statistics 这是1.8.0版本: https : //docs.wso2.com/display/AM180/Publishing+API+Runtime+Statistics

Alternatively, you can use WSO2 API Cloud (SaaS version of API Manager) in which everything is preconfigured and works out of the box. 或者,您可以使用WSO2 API Cloud (API Manager的SaaS版本),其中的所有内容均已预先配置并且可以立即使用。

In this case the problems is in the max Windows path length. 在这种情况下,问题出在最大Windows路径长度上。 When BAM is trying to run am_stats_script to make statistics, it has to copy to tmp folder some library. 当BAM试图运行am_stats_script进行统计时,它必须将一些库复制到tmp文件夹中。 To do that it has to create many nasted folders. 为此,它必须创建许多带鼻子的文件夹。 And in one moment there occurs the problem with path length. 一会儿就会出现路径长度问题。 I found it when I was analyzing log output and found "No such file" exception. 我在分析日志输出时找到了它,并发现“没有这样的文件”异常。

The simple solution is to move to Linux platform (as Jamsheer did). 简单的解决方案是迁移到Linux平台(就像Jamsheer所做的那样)。 On Linux there isn`t such problem. 在Linux上没有这样的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM