Skip to content

Commit 172d349

Browse files
author
Serban Mateescu
committed
added batch script for windows usage; most operations yet untested
1 parent 64cbcdf commit 172d349

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/bin/dl.bat

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@echo off
2+
setlocal enabledelayedexpansion
3+
4+
set KDC=bsiintegration.bigstepcloud.com
5+
set REALM=integration.bigstepcloud.com
6+
7+
set bin=%~dp0
8+
set LIB=%bin%..\lib\
9+
set CONF=%bin%..\conf\
10+
11+
set KRB5_CONFIG=%CONF%krb5.conf
12+
set DEBUG_KERBEROS=false
13+
set JARS=%LIB%*
14+
set CLASSPATH=%CONF%;%JARS%
15+
16+
if "%1"=="genkeytab" (
17+
set CLASS=com.bigstep.datalake.KeytabUtil
18+
) else (
19+
set CLASS=org.apache.hadoop.fs.FsShell
20+
)
21+
22+
java -cp %CLASSPATH% -Djava.security.krb5.conf=%KRB5_CONFIG% -Djava.security.krb5.kdc=%KDC% -Djava.security.krb5.realm=%REALM% -Dsun.security.krb5.debug=%DEBUG_KERBEROS% %CLASS% %*

0 commit comments

Comments
 (0)