DataX icon indicating copy to clipboard operation
DataX copied to clipboard

本地编译完成执行 命令报错

Open gxgeek opened this issue 8 years ago • 6 comments

2018-03-14 09:26:24.390 [job-0] ERROR RetryUtil - Exception when calling callable, 异常Msg:Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for ["jdbc:oracle:thin:@*********"] com.alibaba.datax.common.exception.DataXException: Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for

可是我的账号密码是对的

gxgeek avatar Mar 14 '18 01:03 gxgeek

尝试能否直接远程连接,是否授权远程连接。 文件内url是否正确

mohuanchenchen avatar Mar 14 '18 01:03 mohuanchenchen

很大的可能性是由于数据库的远程用户登录权限的问题

yitiaoxian avatar Mar 14 '18 02:03 yitiaoxian

我这遍连编译都不通过 是我的maven的源配置的有问题吗? Downloading: http://maven.aliyun.com/nexus/content/groups/public/eigenbase/eigenbase-properties/1.1.4/eigenbase-properties-1.1.4.pom [WARNING] The POM for eigenbase:eigenbase-properties:jar:1.1.4 is missing, no dependency information available Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.pom [WARNING] The POM for org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde is missing, no dependency information available Downloading: http://maven.aliyun.com/nexus/content/groups/public/eigenbase/eigenbase-properties/1.1.4/eigenbase-properties-1.1.4.jar Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.276 s [INFO] Finished at: 2018-03-27T16:59:14+08:00 [INFO] Final Memory: 14M/240M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project hdfsreader: Could not resolve dependencies for project com.alibaba.datax:hdfsreader:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde, eigenbase:eigenbase-properties:jar:1.1.4: Failure to find org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of maven-net-cn has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Process finished with exit code 1

yanzhi008 avatar Mar 27 '18 09:03 yanzhi008

修改pom中的仓库,添加除阿里云的仓库,就可以把这两个jar下载下来了。

SpilderNutch avatar Feb 26 '20 16:02 SpilderNutch

最新版的代码应该是可以编译的

zhongjiajie avatar Feb 27 '20 02:02 zhongjiajie

编译命令: mvn clean package -U -DskipTests assembly:assembly

使用最新代码可以正常编译,注意使用 jdk >= 1.8

TrafalgarLuo avatar Jun 10 '22 13:06 TrafalgarLuo