当前位置:首页 > 开发 > 数据库 > 正文

安装mysql-connector-java出现以下问题,解决

发表于: 2014-08-15   作者:Appleses   来源:转载   浏览:
摘要: [root@master-hadoop hive]# yum install mysql-connector-java -y Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: mirrors.ali
[root@master-hadoop hive]# yum install mysql-connector-java -y
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: mirrors.aliyun.com
* updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-connector-java.noarch 1:5.1.17-6.el6 will be installed
--> Processing Dependency: jta >= 1.0 for package: 1:mysql-connector-java-5.1.17-6.el6.noarch
--> Processing Dependency: slf4j for package: 1:mysql-connector-java-5.1.17-6.el6.noarch
--> Running transaction check
---> Package geronimo-specs-compat.noarch 0:1.0-3.5.M2.el6 will be installed
--> Processing Dependency: geronimo-specs = 1.0-3.5.M2.el6 for package: geronimo-specs-compat-1.0-3.5.M2.el6.noarch
---> Package slf4j.noarch 0:1.5.8-8.el6 will be installed
--> Running transaction check
---> Package geronimo-specs.noarch 0:1.0-3.5.M2.el6 will be installed
--> Processing Dependency: mx4j >= 2.0.1 for package: geronimo-specs-1.0-3.5.M2.el6.noarch
--> Processing Dependency: apache-tomcat-apis for package: geronimo-specs-1.0-3.5.M2.el6.noarch
--> Running transaction check
---> Package apache-tomcat-apis.noarch 0:0.1-1.el6 will be installed
---> Package mx4j.noarch 1:3.0.1-9.13.el6 will be installed
--> Processing Dependency: log4j >= 1.2.7 for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: javamail >= 1.2-5jpp for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: jakarta-commons-logging >= 1.0.1 for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: bcel >= 5.0 for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: axis >= 1.1 for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: xml-commons-resolver for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: xml-commons-apis for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: xml-commons for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: jaf for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Running transaction check
---> Package axis.noarch 0:1.2.1-7.3.el6_3 will be installed
--> Processing Dependency: wsdl4j for package: axis-1.2.1-7.3.el6_3.noarch
--> Processing Dependency: jaxp_parser_impl for package: axis-1.2.1-7.3.el6_3.noarch
base/filelists_db                                                                   | 5.9 MB     00:03    
extras/filelists_db                                                                 |  11 kB     00:00    
http://centos.ustc.edu.cn/centos/6.5/updates/x86_64/repodata/9f70956f3d23ddff60a242f784bce13299bae088f2ee9ffaeeca3348176e67b1-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://mirrors.cug.edu.cn/centos/6.5/updates/x86_64/repodata/9f70956f3d23ddff60a242f784bce13299bae088f2ee9ffaeeca3348176e67b1-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://mirror.bit.edu.cn/centos/6.5/updates/x86_64/repodata/9f70956f3d23ddff60a242f784bce13299bae088f2ee9ffaeeca3348176e67b1-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.bit.edu.cn'"
Trying other mirror.
http://mirror.neu.edu.cn/centos/6.5/updates/x86_64/repodata/9f70956f3d23ddff60a242f784bce13299bae088f2ee9ffaeeca3348176e67b1-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://mirrors.neusoft.edu.cn/centos/6.5/updates/x86_64/repodata/9f70956f3d23ddff60a242f784bce13299bae088f2ee9ffaeeca3348176e67b1-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://mirrors.pubyun.com/centos/6.5/updates/x86_64/repodata/9f70956f3d23ddff60a242f784bce13299bae088f2ee9ffaeeca3348176e67b1-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://mirrors.163.com/centos/6.5/updates/x86_64/repodata/9f70956f3d23ddff60a242f784bce13299bae088f2ee9ffaeeca3348176e67b1-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://mirrors.hustunique.com/centos/6.5/updates/x86_64/repodata/9f70956f3d23ddff60a242f784bce13299bae088f2ee9ffaeeca3348176e67b1-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://mirrors.btte.net/centos/6.5/updates/x86_64/repodata/9f70956f3d23ddff60a242f784bce13299bae088f2ee9ffaeeca3348176e67b1-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://mirrors.grandcloud.cn/centos/6.5/updates/x86_64/repodata/9f70956f3d23ddff60a242f784bce13299bae088f2ee9ffaeeca3348176e67b1-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: failure: repodata/9f70956f3d23ddff60a242f784bce13299bae088f2ee9ffaeeca3348176e67b1-filelists.sqlite.bz2 from updates: [Errno 256] No more mirrors to try.
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest



解决方法:
yum clean all
yum makecache

可参考:http://www.it345.net/post/92.html

安装mysql-connector-java出现以下问题,解决

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号