hadoop 学习日记mark hadoop编译失败

    今天在centOS 6.5成功编译hadoop 2.2.0 ,以前编译未通过,环境也是centOS 6.5 但是安装了adoop 2.3.0,因为HADOOP ECLIPSE PLUGIN 2.2 无法访问虚拟机HDFS文件系统 ,所以新装了一个CentOS虚拟机,重新编译hadoop2.2。

总结以前编译不成功的原因:

   2. 安装下面的软件
$  yum install cmake lzo-devel  zlib-devel  gcc autoconf automake libtool   ncurses-devel openssl-deve
上面这条命令有时不能把列出来的包装上,需要手动运行以下命令。
  yum install  gcc-c++
  yum install  libc-headers
  yum install openssl-devel
以下为安装精简后的流水日志
yum install cmake lzo-devel  zlib-devel  gcc autoconf automake libtool   ncurses-devel openssl-deve
[BEGIN] 2014/7/27 9:16:03
y
Downloading Packages:
(1/9): autoconf-2.63-5.1.el6.noarch.rpm           (0%)  5% [==                                      ]  0.0 B/s |  43 kB     --:-- ETA
(1/9): autoconf-2.63-5.1.el6.noarch.rpm           (8%) 87% [==================================-     ] 223 kB/s | 682 kB     00:00 ETA
(1/9): autoconf-2.63-5.1.el6.noarch.rpm           (9%) 99% [=======================================-] 229 kB/s | 780 kB     00:00 ETA

(1/9): autoconf-2.63-5.1.el6.noarch.rpm                                                                        | 781 kB     00:02    
(2/9): automake-1.11.1-4.el6.noarch.rpm           (10%) 11% [====-                                  ]  0.0 B/s |  64 kB     --:-- ETA

(2/9): automake-1.11.1-4.el6.noarch.rpm           (16%) 95% [=====================================  ]  88 kB/s | 525 kB     00:00 ETA

(2/9): automake-1.11.1-4.el6.noarch.rpm                                                                        | 550 kB     00:04    
(3/9): cmake-2.6.4-5.el6.x86_64.rpm               (80%) 96% [=====================================- ] 489 kB/s | 5.0 MB     00:00 ETA

(3/9): cmake-2.6.4-5.el6.x86_64.rpm                                                                            | 5.2 MB     00:10    
(4/9): libtool-2.2.6-15.5.el6.x86_64.rpm          (83%) 12% [====-                                  ]  0.0 B/s |  71 kB     --:-- ETA
(4/9): libtool-2.2.6-15.5.el6.x86_64.rpm          (86%) 52% [====================-                  ] 378 kB/s | 298 kB     00:00 ETA

(4/9): libtool-2.2.6-15.5.el6.x86_64.rpm                                                                       | 564 kB     00:00    

(5/9): lzo-2.03-3.1.el6_5.1.x86_64.rpm                                                                         |  55 kB     00:00    

(6/9): lzo-devel-2.03-3.1.el6_5.1.x86_64.rpm                                                                   |  31 kB     00:00    

(7/9): lzo-minilzo-2.03-3.1.el6_5.1.x86_64.rpm                                                                 |  13 kB     00:00    
(8/9): ncurses-devel-5.7-3.20090208.el6.x86_64.rp (93%) 28% [===========                            ]  0.0 B/s | 181 kB     --:-- ETA
(8/9): ncurses-devel-5.7-3.20090208.el6.x86_64.rp (98%) 90% [===================================    ] 252 kB/s | 580 kB     00:00 ETA

(8/9): ncurses-devel-5.7-3.20090208.el6.x86_64.rpm                                                             | 642 kB     00:01    

(9/9): zlib-devel-1.2.3-29.el6.x86_64.rpm                                                                      |  44 kB     00:00    
--------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                 336 kB/s | 7.8 MB     00:23    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction

  Installing : autoconf-2.63-5.1.el6.noarch [                                                                                 ]  1/10
ling : autoconf-2.63-5.1.el6.noarch [################################################################################ ]  1/10
  Installing : autoconf-2.63-5.1.el6.noarch                                                                                      1/10

  Installing : automake-1.11.1-4.el6.noarch [                                                                                 ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#                                                                                ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [##                                                                               ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [###                                                                              ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [####                                                                             ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#####                                                                            ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [######                                                                           ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#######                                                                          ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [########                                                                         ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#########                                                                        ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [###########                                                                      ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#############                                                                    ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [##############                                                                   ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#################                                                                ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [##################                                                               ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [###################                                                              ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [####################                                                             ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#####################                                                            ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [######################                                                           ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#######################                                                          ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [########################                                                         ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#########################                                                        ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [##########################                                                       ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [###########################                                                      ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#############################                                                    ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [###############################                                                  ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#################################                                                ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [##################################                                               ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [###################################                                              ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [####################################                                             ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#######################################                                          ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [###########################################                                      ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [##############################################                                   ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [##################################################                               ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [###################################################                              ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [####################################################                             ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#######################################################                          ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [########################################################                         ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [###########################################################                      ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#############################################################                    ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [################################################################                 ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [#################################################################                ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [####################################################################             ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [########################################################################         ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [############################################################################     ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [##############################################################################   ]  2/10
  Installing : automake-1.11.1-4.el6.noarch [################################################################################ ]  2/10
  Installing : automake-1.11.1-4.el6.noarch                                                                                      2/10

  Installing : zlib-devel-1.2.3-29.el6.x86_64 [######                                                                         ]  3/10
  Installing : zlib-devel-1.2.3-29.el6.x86_64 [#################################################                              ]  3/10
  Installing : zlib-devel-1.2.3-29.el6.x86_64 [##################################################                             ]  3/10
  Installing : zlib-devel-1.2.3-29.el6.x86_64 [######################################################                         ]  3/10
  Installing : zlib-devel-1.2.3-29.el6.x86_64 [############################################################                   ]  3/10
  Installing : zlib-devel-1.2.3-29.el6.x86_64 [#######################################################################        ]  3/10
  Installing : zlib-devel-1.2.3-29.el6.x86_64 [#############################################################################  ]  3/10
  Installing : zlib-devel-1.2.3-29.el6.x86_64 [############################################################################## ]  3/10
  Installing : zlib-devel-1.2.3-29.el6.x86_64                                                                                    3/10

  Installing : lzo-minilzo-2.03-3.1.el6_5.1.x86_64 [####################################################                      ]  4/10
  Installing : lzo-minilzo-2.03-3.1.el6_5.1.x86_64 [#####################################################                     ]  4/10
  Installing : lzo-minilzo-2.03-3.1.el6_5.1.x86_64 [######################################################################### ]  4/10
  Installing : lzo-minilzo-2.03-3.1.el6_5.1.x86_64                                                                               4/10

  Updating   : lzo-2.03-3.1.el6_5.1.x86_64 [                                                                                  ]  5/10
  Updating   : lzo-2.03-3.1.el6_5.1.x86_64 [###############################                                                   ]  5/10
  Updating   : lzo-2.03-3.1.el6_5.1.x86_64 [################################################################                  ]  5/10
  Updating   : lzo-2.03-3.1.el6_5.1.x86_64 [##################################################################                ]  5/10
  Updating   : lzo-2.03-3.1.el6_5.1.x86_64 [###########################################################################       ]  5/10
  Updating   : lzo-2.03-3.1.el6_5.1.x86_64 [################################################################################# ]  5/10
  Updating   : lzo-2.03-3.1.el6_5.1.x86_64                                                                                       5/10

  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [                                                                            ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [#                                                                           ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [###                                                                         ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [######                                                                      ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [########                                                                    ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [##########                                                                  ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [#############                                                               ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [###############                                                             ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [##################                                                          ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [###################                                                         ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [######################                                                      ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [#############################                                               ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [###########################################################                 ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [############################################################                ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [##############################################################              ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [##################################################################          ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [########################################################################    ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64 [########################################################################### ]  6/10
  Installing : lzo-devel-2.03-3.1.el6_5.1.x86_64                                                                                 6/10

  Installing : libtool-2.2.6-15.5.el6.x86_64 [##                                                                              ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [####                                                                            ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [#######                                                                         ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [##########                                                                      ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [###########                                                                     ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [#############                                                                   ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [################                                                                ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [###################                                                             ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [#####################                                                           ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [########################                                                        ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [#########################                                                       ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [##########################                                                      ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [###########################                                                     ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [############################                                                    ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [#############################                                                   ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [###############################                                                 ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [################################                                                ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [####################################                                            ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [######################################                                          ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [########################################                                        ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [##########################################                                      ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [############################################                                    ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [#############################################                                   ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [################################################                                ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [###################################################                             ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [#####################################################                           ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [#######################################################                         ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [########################################################                        ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [###########################################################                     ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [############################################################                    ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [#############################################################                   ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [################################################################                ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [##################################################################              ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [####################################################################            ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [#####################################################################           ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [########################################################################        ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [##########################################################################      ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [#############################################################################   ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64 [############################################################################### ]  7/10
  Installing : libtool-2.2.6-15.5.el6.x86_64                                                                                     7/10

  Installing : cmake-2.6.4-5.el6.x86_64 [                                                                                     ]  8/10
    Installing : cmake-2.6.4-5.el6.x86_64 [#############                                                                        ]  8/10
    Installing : cmake-2.6.4-5.el6.x86_64 [#################################################################################### ]  8/10
  Installing : cmake-2.6.4-5.el6.x86_64                                                                                          8/10

  Installing : ncurses-devel-5.7-3.20090208.el6.x86_64 [                                                                      ]  9/10
  Installing : ncurses-devel-5.7-3.20090208.el6.x86_64 [##                                                                    ]  9/10

  Installing : ncurses-devel-5.7-3.20090208.el6.x86_64 [#################################################################     ]  9/10
    Installing : ncurses-devel-5.7-3.20090208.el6.x86_64                                                                           9/10

  Cleanup    : lzo-2.03-3.1.el6.x86_64                                                                                          10/10

  Verifying  : lzo-2.03-3.1.el6_5.1.x86_64                                                                                       1/10

  Verifying  : lzo-minilzo-2.03-3.1.el6_5.1.x86_64                                                                               2/10

  Verifying  : lzo-devel-2.03-3.1.el6_5.1.x86_64                                                                                 3/10

  Verifying  : autoconf-2.63-5.1.el6.noarch                                                                                      4/10

  Verifying  : zlib-devel-1.2.3-29.el6.x86_64                                                                                    5/10

  Verifying  : libtool-2.2.6-15.5.el6.x86_64                                                                                     6/10

  Verifying  : ncurses-devel-5.7-3.20090208.el6.x86_64                                                                           7/10

  Verifying  : cmake-2.6.4-5.el6.x86_64                                                                                          8/10

  Verifying  : automake-1.11.1-4.el6.noarch                                                                                      9/10

  Verifying  : lzo-2.03-3.1.el6.x86_64                                                                                          10/10

Installed:
  autoconf.noarch 0:2.63-5.1.el6          automake.noarch 0:1.11.1-4.el6             cmake.x86_64 0:2.6.4-5.el6                     
  libtool.x86_64 0:2.2.6-15.5.el6         lzo-devel.x86_64 0:2.03-3.1.el6_5.1        ncurses-devel.x86_64 0:5.7-3.20090208.el6      
  zlib-devel.x86_64 0:1.2.3-29.el6      

Dependency Installed:
  lzo-minilzo.x86_64 0:2.03-3.1.el6_5.1                                                                                              

Dependency Updated:
  lzo.x86_64 0:2.03-3.1.el6_5.1                                                                                                      

Complete!
[root@localhost hadoop]# yun install  libc-headers
bash: yun: command not found
[root@localhost hadoop]# yum install  libc-headers
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 4442.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:16 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:18 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:20 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:22 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:24 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:26 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:28 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:30 ago
    State  : Running, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:32 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:34 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:36 ago
    State  : Running, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:38 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:40 ago
    State  : Running, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:42 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:44 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:46 ago
    State  : Running, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  37 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:48 ago
    State  : Sleeping, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  42 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:50 ago
    State  : Running, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  42 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:52 ago
    State  : Running, pid: 4442
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  42 M RSS (1.3 GB VSZ)
    Started: Sun Jul 27 10:18:11 2014 - 00:54 ago
    State  : Running, pid: 4442
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* extras: mirrors.yun-idc.com
* updates: mirrors.btte.net
Setting up Install Process
No package libc-headers available.
Error: Nothing to do
[root@localhost hadoop]# wget http://mirror.esocc.com/apache/maven/maven-3/3.1.4/binaries/apache-maven-3.1.4-bin.tar.gz
--2014-07-27 10:20:08--  http://mirror.esocc.com/apache/maven/maven-3/3.1.4/binaries/apache-maven-3.1.4-bin.tar.gz
正在解析主机 mirror.esocc.com... 221.228.228.159
正在连接 mirror.esocc.com|221.228.228.159|:80... 失败:拒绝连接。
[root@localhost hadoop]# cd /home/hadoop/Downloads
[root@localhost Downloads]# tar zxf apache-maven-3.1.4-bin.tar.gz -C /opt
tar (child): apache-maven-3.1.4-bin.tar.gz:无法 open: 没有那个文件或目录
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
[root@localhost Downloads]# tar zxf apache* -C /opt
[root@localhost Downloads]# ls
apache-maven-3.2.2-bin.tar.gz  hadoop-1.2.1.tar.gz  hadoop-2.2.0-src.tar.gz  jdk-7u65-linux-x64.rpm
[root@localhost Downloads]# vim /etc/profile

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL

export JAVA_HOME=/usr/java/jdk1.7.0_65

export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export PATH=$PATH:$JAVA_HOME/bin


[root@localhost Downloads]# source /etc/profile
[root@localhost Downloads]# mvn
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.155 s
[INFO] Finished at: 2014-07-27T10:25:09+08:00
[INFO] Final Memory: 7M/52M
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [Help 1]
[ERROR]
[root@localhost Downloads]# wget http://apache.dataguru.cn//ant/binaries/apache-ant-1.9.4-bin.tar.gz
--2014-07-27 10:25:17--  http://apache.dataguru.cn//ant/binaries/apache-ant-1.9.4-bin.tar.gz
正在解析主机 apache.dataguru.cn... 112.81.51.52
正在连接 apache.dataguru.cn|112.81.51.52|:80... 失败:连接超时。
重试中。

--2014-07-27 10:26:22--  (尝试次数: 2)  http://apache.dataguru.cn//ant/binaries/apache-ant-1.9.4-bin.tar.gz
正在连接 apache.dataguru.cn|112.81.51.52|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:5564593 (5.3M) [application/octet-stream]
正在保存至: “apache-ant-1.9.4-bin.tar.gz”


0% [                                                                                             ] 0           --.-K/s             
16% [==============>                                                                              ] 919,632     6.98K/s eta(英国中部时间) 11m 18s^C
[root@localhost Downloads]# unzip apache-ant-1.9.4-bin.zip
Archive:  apache-ant-1.9.4-bin.zip
   creating: apache-ant-1.9.4/
   creating: apache-ant-1.9.4/bin/
  inflating: apache-ant-1.9.4/bin/ant 
  inflating: apache-ant-1.9.4/manual/usinglist.html 
[root@localhost Downloads]# ls
apache-ant-1.9.4             apache-ant-1.9.4-bin.zip       hadoop-1.2.1.tar.gz      jdk-7u65-linux-x64.rpm
apache-ant-1.9.4-bin.tar.gz  apache-maven-3.2.2-bin.tar.gz  hadoop-2.2.0-src.tar.gz
[root@localhost Downloads]# ls /opt
apache-ant-1.9.4-bin.zip  apache-maven-3.2.2  rh
[root@localhost Downloads]# cd /opt
[root@localhost opt]# ls
apache-ant-1.9.4  apache-ant-1.9.4-bin.zip  apache-maven-3.2.2  rh
[root@localhost opt]# vi /etc/profile


export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL

export JAVA_HOME=/usr/java/jdk1.7.0_65

export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export PATH=$PATH:$JAVA_HOME/bin

export MAVEN_HOME=/opt/apache-maven-3.2.2

export PATH=$PATH:$MAVEN_HOME/bin


[root@localhost opt]# ant
Buildfile: build.xml does not exist!
Build failed
[root@localhost Downloads]# tar zxf findbugs-2.0.3.tar.gz -C /opt
[root@localhost Downloads]# vi /etc/profile
"/etc/profile" 84L, 2105C# /etc/profile

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL

export JAVA_HOME=/usr/java/jdk1.7.0_65

export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export PATH=$PATH:$JAVA_HOME/bin

export MAVEN_HOME=/opt/apache-maven-3.2.2

export PATH=$PATH:$MAVEN_HOME/bin

export ANT_HOME=/opt/apache-ant-1.9.4

export PATH=$PATH:$ANT_HOME/bin

-- INSERT --# By default, we want umask to get set. This sets it for login shell
export FINDBUGS_HOME=/opt/findbugs-2.0.3
export PATH=$PATH:$FINDBUGS_HOME/bin:wq
"/etc/profile" 86L, 2183C written
[root@localhost Downloads]#  wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
--2014-07-27 10:39:20--  https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
正在解析主机 protobuf.googlecode.com... 173.194.72.82, 2404:6800:4008:c02::52
正在连接 protobuf.googlecode.com|173.194.72.82|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:2401901 (2.3M) [application/x-gzip]
正在保存至: “protobuf-2.5.0.tar.gz”


0% [                                                                                             ] 0           --.-K/s             
100%[============================================================================================>] 2,401,901    680K/s   in 3.5s   

2014-07-27 10:39:40 (680 KB/s) - 已保存 “protobuf-2.5.0.tar.gz” [2401901/2401901])

[root@localhost Downloads]#  tar zxf protobuf-2.5.0.tar.gz
[root@localhost Downloads]# cd pr*
[[root@localhost protobuf-2.5.0]# ./configure
checking whether to enable maintainer-specific portions of Makefiles... yes

[root@localhost protobuf-2.5.0]# make
make  all-recursive
make[1]: Entering directory `/home/hadoop/Downloads/protobuf-2.5.0'
Making all in .
make[2]: Entering directory `/home/hadoop/Downloads/protobuf-2.5.0'
make[2]: Leaving directory `/home/hadoop/Downloads/protobuf-2.5.0'
Making all in src
make[2]: Entering directory `/home/hadoop/Downloads/protobuf-2.5.0/src'


make[1]: Leaving directory `/home/hadoop/Downloads/protobuf-2.5.0'
[root@localhost protobuf-2.5.0]# make install
Making install in .
make[1]: Entering directory `/home/hadoop/Downloads/protobuf-2.5.0'

[root@localhost hadoop-2.2.0-src]# wget https://issues.apache.org/jira/secure/attachment/12614482/HADOOP-10110.patch; patch -p0 < HADO
OP-10110.patch
--2014-07-27 10:45:52--  https://issues.apache.org/jira/secure/attachment/12614482/HADOOP-10110.patch
正在解析主机 issues.apache.org... 140.211.11.121
正在连接 issues.apache.org|140.211.11.121|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:578 [text/plain]
正在保存至: “HADOOP-10110.patch”


0% [                                                                                             ] 0           --.-K/s             
100%[============================================================================================>] 578         --.-K/s   in 0s     

2014-07-27 10:45:55 (12.8 MB/s) - 已保存 “HADOOP-10110.patch” [578/578])

patching file hadoop-common-project/hadoop-auth/pom.xml
Hunk #1 succeeded at 55 (offset 1 line).
[root@localhost hadoop-2.2.0-src]# mvn package -DskipTests -Pdist,native -Dtar
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.hadoop:hadoop-project:pom:2.2.0

[INFO] Apache Hadoop Main ................................. SUCCESS [  2.836 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [  2.708 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [  4.642 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [  0.423 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [  3.001 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [ 11.529 s]
[INFO] Apache Hadoop Auth ................................. SUCCESS [  8.430 s]
[INFO] Apache Hadoop Auth Examples ........................ SUCCESS [  3.733 s]
[INFO] Apache Hadoop Common ............................... SUCCESS [02:00 min]
[INFO] Apache Hadoop NFS .................................. SUCCESS [  7.960 s]
[INFO] Apache Hadoop Common Project ....................... SUCCESS [  0.058 s]
[INFO] Apache Hadoop HDFS ................................. SUCCESS [02:04 min]
[INFO] Apache Hadoop HttpFS ............................... SUCCESS [ 26.403 s]
[INFO] Apache Hadoop HDFS BookKeeper Journal .............. SUCCESS [ 14.190 s]
[INFO] Apache Hadoop HDFS-NFS ............................. SUCCESS [  5.906 s]
[INFO] Apache Hadoop HDFS Project ......................... SUCCESS [  0.080 s]
[INFO] hadoop-yarn ........................................ SUCCESS [  0.331 s]
[INFO] hadoop-yarn-api .................................... SUCCESS [01:05 min]
[INFO] hadoop-yarn-common ................................. SUCCESS [ 42.312 s]
[INFO] hadoop-yarn-server ................................. SUCCESS [  0.172 s]
[INFO] hadoop-yarn-server-common .......................... SUCCESS [ 14.917 s]
[INFO] hadoop-yarn-server-nodemanager ..................... SUCCESS [ 22.310 s]
[INFO] hadoop-yarn-server-web-proxy ....................... SUCCESS [  5.826 s]
[INFO] hadoop-yarn-server-resourcemanager ................. SUCCESS [ 22.076 s]
[INFO] hadoop-yarn-server-tests ........................... SUCCESS [  1.083 s]
[INFO] hadoop-yarn-client ................................. SUCCESS [ 13.626 s]
[INFO] hadoop-yarn-applications ........................... SUCCESS [  0.401 s]
[INFO] hadoop-yarn-applications-distributedshell .......... SUCCESS [ 10.514 s]
[INFO] hadoop-mapreduce-client ............................ SUCCESS [  0.139 s]
[INFO] hadoop-mapreduce-client-core ....................... SUCCESS [ 31.730 s]
[INFO] hadoop-yarn-applications-unmanaged-am-launcher ..... SUCCESS [  2.412 s]
[INFO] hadoop-yarn-site ................................... SUCCESS [  0.207 s]
[INFO] hadoop-yarn-project ................................ SUCCESS [  5.922 s]
[INFO] hadoop-mapreduce-client-common ..................... SUCCESS [ 23.008 s]
[INFO] hadoop-mapreduce-client-shuffle .................... SUCCESS [  3.495 s]
[INFO] hadoop-mapreduce-client-app ........................ SUCCESS [ 13.054 s]
[INFO] hadoop-mapreduce-client-hs ......................... SUCCESS [  6.634 s]
[INFO] hadoop-mapreduce-client-jobclient .................. SUCCESS [  6.173 s]
[INFO] hadoop-mapreduce-client-hs-plugins ................. SUCCESS [  2.563 s]
[INFO] Apache Hadoop MapReduce Examples ................... SUCCESS [  7.114 s]
[INFO] hadoop-mapreduce ................................... SUCCESS [  4.311 s]
[INFO] Apache Hadoop MapReduce Streaming .................. SUCCESS [  5.752 s]
[INFO] Apache Hadoop Distributed Copy ..................... SUCCESS [ 11.141 s]
[INFO] Apache Hadoop Archives ............................. SUCCESS [  3.342 s]
[INFO] Apache Hadoop Rumen ................................ SUCCESS [  8.751 s]
[INFO] Apache Hadoop Gridmix .............................. SUCCESS [  5.792 s]
[INFO] Apache Hadoop Data Join ............................ SUCCESS [  3.943 s]
[INFO] Apache Hadoop Extras ............................... SUCCESS [  4.027 s]
[INFO] Apache Hadoop Pipes ................................ FAILURE [  0.746 s]
[INFO] Apache Hadoop Tools Dist ........................... SKIPPED
[INFO] Apache Hadoop Tools ................................ SKIPPED
[INFO] Apache Hadoop Distribution ......................... SKIPPED
[INFO] Apache Hadoop Client ............................... SKIPPED
[INFO] Apache Hadoop Mini-Cluster ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11:29 min
[INFO] Finished at: 2014-07-27T12:19:03+08:00
[INFO] Final Memory: 63M/253M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (make) on project hadoop-pipes: An Ant BuildException has occured: exec returned: 1 -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hadoop-pipes
[root@localhost hadoop-2.2.0-src]# echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/java/jdk1.7.0_65/bin:/home/hadoop/bin:/usr/java/jdk1.7.0_65/bin:/opt/apache-maven-3.2.2/bin:/opt/apache-ant-1.9.4/bin:/opt/findbugs-2.0.3/bin
[root@localhost hadoop-2.2.0-src]# yum install openssl-devel

[root@localhost hadoop-2.2.0-src]# mvn package -DskipTests -Pdist,native -Dtar
hadoop 学习日记mark hadoop编译失败_第1张图片

hadoop 学习日记mark hadoop编译失败_第2张图片

hadoop 学习日记mark hadoop编译失败_第3张图片

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................. SUCCESS [  7.826 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [  2.373 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [  2.497 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [  0.870 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [  0.345 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [  3.825 s]
[INFO] Apache Hadoop Auth ................................. SUCCESS [  2.534 s]
[INFO] Apache Hadoop Auth Examples ........................ SUCCESS [  1.584 s]
[INFO] Apache Hadoop Common ............................... SUCCESS [ 43.581 s]
[INFO] Apache Hadoop NFS .................................. SUCCESS [  1.411 s]
[INFO] Apache Hadoop Common Project ....................... SUCCESS [  0.063 s]
[INFO] Apache Hadoop HDFS ................................. SUCCESS [ 39.785 s]
[INFO] Apache Hadoop HttpFS ............................... SUCCESS [  4.161 s]
[INFO] Apache Hadoop HDFS BookKeeper Journal .............. SUCCESS [  1.077 s]
[INFO] Apache Hadoop HDFS-NFS ............................. SUCCESS [  0.883 s]
[INFO] Apache Hadoop HDFS Project ......................... SUCCESS [  0.096 s]
[INFO] hadoop-yarn ........................................ SUCCESS [  0.508 s]
[INFO] hadoop-yarn-api .................................... SUCCESS [  4.971 s]
[INFO] hadoop-yarn-common ................................. SUCCESS [  5.573 s]
[INFO] hadoop-yarn-server ................................. SUCCESS [  0.113 s]
[INFO] hadoop-yarn-server-common .......................... SUCCESS [  1.250 s]
[INFO] hadoop-yarn-server-nodemanager ..................... SUCCESS [  2.544 s]
[INFO] hadoop-yarn-server-web-proxy ....................... SUCCESS [  0.556 s]
[INFO] hadoop-yarn-server-resourcemanager ................. SUCCESS [  2.903 s]
[INFO] hadoop-yarn-server-tests ........................... SUCCESS [  0.701 s]
[INFO] hadoop-yarn-client ................................. SUCCESS [  1.140 s]
[INFO] hadoop-yarn-applications ........................... SUCCESS [  0.140 s]
[INFO] hadoop-yarn-applications-distributedshell .......... SUCCESS [  0.732 s]
[INFO] hadoop-mapreduce-client ............................ SUCCESS [  0.115 s]
[INFO] hadoop-mapreduce-client-core ....................... SUCCESS [  5.906 s]
[INFO] hadoop-yarn-applications-unmanaged-am-launcher ..... SUCCESS [  0.478 s]
[INFO] hadoop-yarn-site ................................... SUCCESS [  0.226 s]
[INFO] hadoop-yarn-project ................................ SUCCESS [  0.227 s]
[INFO] hadoop-mapreduce-client-common ..................... SUCCESS [  3.831 s]
[INFO] hadoop-mapreduce-client-shuffle .................... SUCCESS [  0.436 s]
[INFO] hadoop-mapreduce-client-app ........................ SUCCESS [  2.030 s]
[INFO] hadoop-mapreduce-client-hs ......................... SUCCESS [  1.123 s]
[INFO] hadoop-mapreduce-client-jobclient .................. SUCCESS [  3.810 s]
[INFO] hadoop-mapreduce-client-hs-plugins ................. SUCCESS [  0.345 s]
[INFO] Apache Hadoop MapReduce Examples ................... SUCCESS [  0.929 s]
[INFO] hadoop-mapreduce ................................... SUCCESS [  0.157 s]
[INFO] Apache Hadoop MapReduce Streaming .................. SUCCESS [  0.834 s]
[INFO] Apache Hadoop Distributed Copy ..................... SUCCESS [  2.409 s]
[INFO] Apache Hadoop Archives ............................. SUCCESS [  0.524 s]
[INFO] Apache Hadoop Rumen ................................ SUCCESS [  1.677 s]
[INFO] Apache Hadoop Gridmix .............................. SUCCESS [  1.154 s]
[INFO] Apache Hadoop Data Join ............................ SUCCESS [  0.594 s]
[INFO] Apache Hadoop Extras ............................... SUCCESS [  0.567 s]
[INFO] Apache Hadoop Pipes ................................ SUCCESS [  0.039 s]
[INFO] Apache Hadoop Tools Dist ........................... SUCCESS [  0.297 s]
[INFO] Apache Hadoop Tools ................................ SUCCESS [  0.042 s]
[INFO] Apache Hadoop Distribution ......................... SUCCESS [  0.150 s]
[INFO] Apache Hadoop Client ............................... SUCCESS [  0.349 s]
[INFO] Apache Hadoop Mini-Cluster ......................... SUCCESS [  0.147 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:45 min
[INFO] Finished at: 2014-07-27T11:43:29+08:00
[INFO] Final Memory: 135M/296M
[INFO] ------------------------------------------------------------------------
[root@localhost hadoop-2.2.0-src]# ls
BUILDING.txt        hadoop-client          hadoop-mapreduce-project  hadoop-project-dist  NOTICE.txt
dev-support         hadoop-common-project  hadoop-maven-plugins      hadoop-tools         pom.xml
HADOOP-10110.patch  hadoop-dist            hadoop-minicluster        hadoop-yarn-project  README.txt
hadoop-assemblies   hadoop-hdfs-project    hadoop-project            LICENSE.txt
[root@localhost hadoop-2.2.0-src]# cd hadoop-dist
[root@localhost hadoop-dist]# ls
pom.xml  target
[root@localhost hadoop-dist]# cd target
[root@localhost target]# ls
antrun  hadoop-dist-2.2.0.jar  maven-archiver  test-dir
[root@localhost target]# ls -al
总用量 24
drwxr-xr-x. 5 root  root  4096 7月  27 11:43 .
drwxr-xr-x. 3 67974 users 4096 7月  27 11:43 ..
drwxr-xr-x. 2 root  root  4096 7月  27 11:43 antrun
-rw-r--r--. 1 root  root  2745 7月  27 11:43 hadoop-dist-2.2.0.jar
drwxr-xr-x. 2 root  root  4096 7月  27 11:43 maven-archiver
drwxr-xr-x. 2 root  root  4096 7月  27 11:43 test-dir
[root@localhost target]# ls
antrun  hadoop-dist-2.2.0.jar  maven-archiver  test-dir
[root@localhost target]# mvn package -DskipTests -Pdist,native -Dtar
[INFO] Scanning for projects...
[INFO] ---------------------------------------------------------------

你可能感兴趣的:(hadoop)