diff --git a/bin/beeline.cmd b/bin/beeline.cmd
index 8ddaa419967a54796c8d2e1564f285cd1bee6b6d..02464bd0887921057dc07badb28d0111ab304f6c 100644
--- a/bin/beeline.cmd
+++ b/bin/beeline.cmd
@@ -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 %*