Skip to content

Commit

Permalink
[SPARK-13673][WINDOWS] Fixed not to pollute environment variables.
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

This patch fixes the problem that `bin\beeline.cmd` pollutes environment variables.
The similar problem is reported and fixed in https://issues.apache.org/jira/browse/SPARK-3943, but `bin\beeline.cmd` seems to be added later.

## How was this patch tested?

manual tests:
  I executed the new `bin\beeline.cmd` and confirmed that %SPARK_HOME% doesn't remain in the command prompt.

Author: Masayoshi TSUZUKI <tsudukim@oss.nttdata.co.jp>

Closes #11516 from tsudukim/feature/SPARK-13673.
  • Loading branch information
tsudukim authored and srowen committed Mar 4, 2016
1 parent 204b02b commit e617508
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/beeline.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ rem See the License for the specific language governing permissions and
rem limitations under the License.
rem

set SPARK_HOME=%~dp0..
cmd /V /E /C "%SPARK_HOME%\bin\spark-class.cmd" org.apache.hive.beeline.BeeLine %*
cmd /V /E /C "%~dp0spark-class.cmd" org.apache.hive.beeline.BeeLine %*

0 comments on commit e617508

Please sign in to comment.