[ 
https://issues.apache.org/jira/browse/HADOOP-17880?focusedWorklogId=651109&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-651109
 ]

ASF GitHub Bot logged work on HADOOP-17880:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Sep/21 14:11
            Start Date: 15/Sep/21 14:11
    Worklog Time Spent: 10m 
      Work Description: GauthamBanasandra commented on a change in pull request 
#3349:
URL: https://github.com/apache/hadoop/pull/3349#discussion_r709224778



##########
File path: start-build-env.sh
##########
@@ -1,4 +1,4 @@
-#!/bin/bash

Review comment:
       `start-build-env.sh` creates the build environment based on 
`Dockerfile`. Since you haven't modified `Dockerfile` in this PR, you shouldn't 
change this file as well.
   
   Here's my suggestion to you - let's keep the old way as it is, which is, 
building using Virtualbox that uses `Dockerfile`. Those who want to use Docker 
for building can use `Dockerfile_centos_7` directly and not through 
`start-build-env.sh` -
   ```shell
   $ docker build -t hadoop-centos-7 -f 
.\dev-support\docker\Dockerfile_centos_7 .\dev-support\docker\
   ```

##########
File path: BUILDING.txt
##########
@@ -21,38 +21,15 @@ The easiest way to get an environment with all the 
appropriate tools is by means
 of the provided Docker config.
 This requires a recent version of docker (1.4.1 and higher are known to work).
 
-On Linux:
+On Linux or Mac:
     Install Docker and run this command:
 
     $ ./start-build-env.sh
 
-On Mac:
-    First make sure Virtualbox and docker toolbox are installed.
-    You can use docker toolbox as described in 
http://docs.docker.com/mac/step_one/.
-    $ docker-machine create --driver virtualbox \
-                            --virtualbox-memory "4096" hadoopdev
-    $ eval $(docker-machine env hadoopdev)
-    $ ./start-build-env.sh
-
-The prompt which is then presented is located at a mounted version of the 
source tree
-and all required tools for testing and building have been installed and 
configured.
-
 Note that from within this docker environment you ONLY have access to the 
Hadoop source
 tree from where you started. So if you need to run
     dev-support/bin/test-patch /path/to/my.patch
 then the patch must be placed inside the hadoop source tree.
-
-Known issues:
-- On Mac with Boot2Docker the performance on the mounted directory is 
currently extremely slow.
-  This is a known problem related to boot2docker on the Mac.
-  See:
-    https://github.com/boot2docker/boot2docker/issues/593
-  This issue has been resolved as a duplicate, and they point to a new feature 
for utilizing NFS mounts
-  as the proposed solution:
-    https://github.com/boot2docker/boot2docker/issues/64
-  An alternative solution to this problem is to install Linux native inside a 
virtual machine
-  and run your IDE and Docker etc inside that VM.

Review comment:
       I think we should retain the ability to build using Virtualbox and your 
PR would just add the ability to build using Docker, instead of deprecating the 
ability to build using Virtualbox. With that said, you wouldn't need to modify 
the docs here.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 651109)
    Time Spent: 3h 40m  (was: 3.5h)

> build hadoop 2.10.0 with docker machine failed
> ----------------------------------------------
>
>                 Key: HADOOP-17880
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17880
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.10.0
>         Environment: mac os x86_64
>            Reporter: baizhendong
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 3h 40m
>  Remaining Estimate: 0h
>
> 1. currently, we build the hadoop 2.10.0 with docker machine, and must 
> install Virtual Box, and for hadoop 3.x, just build with docker only.
> 2. besides this, the docker image dependency is out of date, and some of them 
> is unavaialble, for example – jdk7
> 3. but just building hadoop 2.10.0 with hadoop 3.x build script without 
> modification is not working, for the protocol buffer version is not 2.5.0, 
> and it's not work for native build.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to