亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

安裝hadoop下的sqoop1.99.3及配置問題全解決

發布時間:2020-07-06 15:56:23 來源:網絡 閱讀:1506 作者:moviebat 欄目:大數據

2016年8月27日,解決sqoop

先下載的是sqoop1.99.7,結果配置的時候,出現了沒有server/conf目錄,以及啟動時出現無法配置錯誤

./bin/sqoop.sh server start


yq@ubuntu:/opt/sqoop-1.99.7$ ./bin/sqoop.sh server start

Setting conf dir: ./bin/../conf

Sqoop home directory: /opt/sqoop-1.99.7

Starting the Sqoop2 server...

Sqoop2 server started.

dyq@ubuntu:/opt/sqoop-1.99.7$ 0    [main] INFO  org.apache.sqoop.core.SqoopServer  - Initializing Sqoop server.

58   [main] INFO  org.apache.sqoop.core.PropertiesConfigurationProvider  - Starting config file poller thread

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/configuration/Configuration

at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.<init>(DefaultMetricsSystem.java:38)

at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.<clinit>(DefaultMetricsSystem.java:36)

at org.apache.hadoop.security.UserGroupInformation$UgiMetrics.create(UserGroupInformation.java:120)

at org.apache.hadoop.security.UserGroupInformation.<clinit>(UserGroupInformation.java:236)

at org.apache.sqoop.security.authentication.SimpleAuthenticationHandler.secureLogin(SimpleAuthenticationHandler.java:39)

at org.apache.sqoop.security.AuthenticationManager.initialize(AuthenticationManager.java:98)

at org.apache.sqoop.core.SqoopServer.initialize(SqoopServer.java:57)

at org.apache.sqoop.server.SqoopJettyServer.<init>(SqoopJettyServer.java:67)

at org.apache.sqoop.server.SqoopJettyServer.main(SqoopJettyServer.java:177)

Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.Configuration

at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

... 9 more



解決辦法是下載sqoop1.99.3,然后哪找如下配置,搞掂:

  1. 2.解壓文件到工作目錄:  

  2. hadoop@hadoopMaster:$ sudo tar -xvf /opt/hn/hadoop_family/sqoop-1.99.3-bin-hadoop200.tar.gz   

  3. hadoop@hadoopMaster:mv /opt/hn/hadoop_family/sqoop-1.99.3-bin-hadoop200 /usr/local/sqoop  

  4. 3.修改環境變量:  

  5. hadoop@hadoopMaster:~$ vim /etc/profile  

  6. 添加如下內容:  

  7. #sqoop  

  8. export SQOOP_HOME=/usr/sqoop-1.99.3

  9. export PATH=$SQOOP_HOME/bin:$PATH  

  10. export CATALINA_HOME=$SQOOP_HOME/server  

  11. export LOGDIR=$SQOOP_HOME/logs  

  12. 保存退出即時生效:  

  13. source /etc/profile  

  14. 4.修改sqoop配置:  

  15. hadoop@hadoopMaster:~$ vim /usr/local/sqoop/server/conf/sqoop.properties   

  16. #修改指向我的hadoop的配置文件目錄

  17. org.apache.sqoop.submission.engine.mapreduce.configuration.directory=/usr/local/hadoop-2.6.2/etc/hadoop

  18. #把hadoop目錄下的jar包都引進來  

  19. hadoop@hadoopMaster:~$ vim /usr/local/sqoop/server/conf/catalina.properties   

  20. common.loader=/usr/local/hadoop/share/hadoop/common/*.jar,/usr/local/hadoop/share/hadoop/common/lib/*.jar,/usr/local/hadoop/share/hadoop/hdfs/*.jar,/usr/local/hadoop/share/hadoop/hdfs/lib/*.jar,/usr/local/hadoop/share/hadoop/mapreduce/*.jar,/usr/local/hadoop/share/hadoop/mapreduce/lib/*.jar,/usr/local/hadoop/share/hadoop/tools/*.jar,/usr/local/hadoop/share/hadoop/tools/lib/*.jar,/usr/local/hadoop/share/hadoop/yarn/*.jar,/usr/local/hadoop/share/hadoop/yarn/lib/*.jar,/usr/local/hadoop/share/hadoop/httpfs/tomcat/lib/*.jar  

  21. 5.下載mysql驅動包  

  22. mysql-connector-java-5.1.16-bin.jar  

  23. 6.啟動/停止sqoop200  

  24. hadoop@hadoopMaster:/usr/local/sqoop/bin$ ./sqoop.sh server start/stop 


跑起來試試:


dyq@ubuntu:/opt/sqoop-1.99.3$  ./bin/sqoop.sh server start

Sqoop home directory: /opt/sqoop-1.99.3

Setting SQOOP_HTTP_PORT:     12000

Setting SQOOP_ADMIN_PORT:     12001

Using   CATALINA_OPTS:       

Adding to CATALINA_OPTS:    -Dsqoop.http.port=12000 -Dsqoop.admin.port=12001

Using CATALINA_BASE:   /opt/sqoop-1.99.3/server

Using CATALINA_HOME:   /opt/sqoop-1.99.3/server

Using CATALINA_TMPDIR: /opt/sqoop-1.99.3/server/temp

Using JRE_HOME:        /usr/java/jdk1.7.0_79/jre

Using CLASSPATH:       /opt/sqoop-1.99.3/server/bin/bootstrap.jar


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

江永县| 绥芬河市| 大足县| 奉化市| 扎鲁特旗| 阜平县| 揭西县| 金寨县| 保康县| 兴城市| 凭祥市| 通道| 长寿区| 北辰区| 崇义县| 任丘市| 长葛市| 崇州市| 房产| 依安县| 平定县| 沿河| 城市| 达尔| 东乌| 漾濞| 紫金县| 康马县| 旺苍县| 马山县| 磴口县| 台湾省| 乌鲁木齐市| 得荣县| 确山县| 栾城县| 泗水县| 山丹县| 东乡县| 当雄县| 武邑县|