aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Jonathan Hseu <jhseu@google.com>2016-09-19 11:14:58 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-09-19 12:17:00 -0700
commit9f5b098f77e5e51a2fc681369dba8ea5dbba5356 (patch)
tree24c75c9ba4ca43829b86902a7754374104a56acf /configure
parent7efb6906a1d6d146ff84ea4391891d243ee2c5d2 (diff)
HDFS support
Notes: - The test is tagged as manual, and you must download the Hadoop distribution to run it. - We ask during ./configure whether to include HDFS support. - Copied hdfs.h from Hadoop here in third_party. It's licensed Apache 2.0. Change: 133615494
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 22 insertions, 2 deletions
diff --git a/configure b/configure
index ce75bb490a..feac140664 100755
--- a/configure
+++ b/configure
@@ -1,7 +1,5 @@
#!/usr/bin/env bash
-DO_NOT_SUBMIT_WARNING="Unofficial setting. DO NOT SUBMIT!!!"
-
# Find out the absolute path to where ./configure resides
pushd `dirname $0` #> /dev/null
SOURCE_BASE_DIR=`pwd -P`
@@ -60,6 +58,28 @@ else
perl -pi -e "s,WITH_GCP_SUPPORT = (False|True),WITH_GCP_SUPPORT = False,s" tensorflow/core/platform/default/build_config.bzl
fi
+while [ "$TF_NEED_HDFS" == "" ]; do
+ read -p "Do you wish to build TensorFlow with "\
+"Hadoop File System support? [y/N] " INPUT
+ case $INPUT in
+ [Yy]* ) echo "Hadoop File System support will be enabled for "\
+"TensorFlow"; TF_NEED_HDFS=1;;
+ [Nn]* ) echo "No Hadoop File System support will be enabled for "\
+"TensorFlow"; TF_NEED_HDFS=0;;
+ "" ) echo "No Hadoop File System support will be enabled for "\
+"TensorFlow"; TF_NEED_HDFS=0;;
+ * ) echo "Invalid selection: " $INPUT;;
+ esac
+done
+
+if [ "$TF_NEED_HDFS" == "1" ]; then
+ # Update Bazel build configuration.
+ perl -pi -e "s,WITH_HDFS_SUPPORT = (False|True),WITH_HDFS_SUPPORT = True,s" tensorflow/core/platform/default/build_config.bzl
+else
+ # Update Bazel build configuration.
+ perl -pi -e "s,WITH_HDFS_SUPPORT = (False|True),WITH_HDFS_SUPPORT = False,s" tensorflow/core/platform/default/build_config.bzl
+fi
+
## Find swig path
if [ -z "$SWIG_PATH" ]; then
SWIG_PATH=`type -p swig 2> /dev/null`