tried to access methos com.google.common.base.Stopwatch.<init>()V from class org.apache.hadoop...(代码

Posted Mr.zhou_Zxy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tried to access methos com.google.common.base.Stopwatch.<init>()V from class org.apache.hadoop...(代码相关的知识,希望对你有一定的参考价值。

  • 错误提示

tried to access methos com.google.common.base.Stopwatch.()V from class org.apache.hadoop.mapred.FileInputFormat

  • 处理方法

应该是spark依赖低版本的guava,删除原有的guava,导入新的guava

		<dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-core_2.11</artifactId>
            <version>2.4.5</version>
            
            <exclusions>
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>15.0</version>
        </dependency>

以上是关于tried to access methos com.google.common.base.Stopwatch.<init>()V from class org.apache.hadoop...(代码的主要内容,如果未能解决你的问题,请参考以下文章

Trying to access array offset on value of type null

Client tried to access password protected page without proper authorization (status code 401) 无法发布Sc

tomcat错误:The page you tried to access (/manager/login.do) does not exist

java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from

启动项目报错:502 Server dropped connection The following error occurred while trying to access http://loc

sh 用于解析Nginx访问日志的Bash脚本:https://sysadmins.co.za/bash-script-to-parse-and-analyze-nginx-access-logs/