2012-12-26 24 views
1

我是Voldemort db的新用戶。如何在Windows 7上配置nosql db voldemort

我指的是http://www.project-voldemort.com/voldemort/quickstart.html 我遵循第一步,我下載了檔案,並將其提取到「D:\ Voldemort \」中。

在第二步,當我去命令提示符並鍵入命令

D:\Voldemort\voldemort-0.96>bin/voldemort-server.sh config/single_node_cluster 

我得到以下錯誤。

'bin'未被識別爲內部或外部命令,可操作 程序或批處理文件。

有什麼辦法可以解決這個問題嗎?

網上有沒有一步一步的指南?

回答

0

bin/voldemort-server.sh是linux操作系統中的一個shell文件。只能在Linux中執行。 錯誤是,我試圖在Windows命令提示符下運行shell腳本。

鏈接http://www.project-voldemort.com/voldemort/quickstart.html給出了在Linux中運行Voldemort nosql db的步驟。

,如果你想在Windows上運行伏地魔。你必須將所有shell腳本(.SH文件)到批處理文件(.bat)

+0

可以請您發佈或提供您的bat文件嗎? – PMoubed

1

您可以參考本博客:http://blog.netoearth.com/html/201107/how-to-install-voldemort-on-windows.htm

這裏BAT文件:https://gist.github.com/erikhoward/344463

伏地魔-shell.bat:

@echo off 

REM 
REM Copyright 2008-2009 LinkedIn, Inc 
REM Copyright 2010 Erik Howard http://www.gonosql.com http://erikhoward.net 
REM 
REM Licensed under the Apache License, Version 2.0 (the "License"); 
REM you may not use this file except in compliance with the License. 
REM You may obtain a copy of the License at 
REM 
REM  http://www.apache.org/licenses/LICENSE-2.0 
REM 
REM Unless required by applicable law or agreed to in writing, software 
REM distributed under the License is distributed on an "AS IS" BASIS, 
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
REM See the License for the specific language governing permissions and 
REM limitations under the License. 
REM 

set Count=0 
for %%a in (%*) do set /a Count+=1 
if %Count% equ 2 goto :continue 
echo USAGE: bin/voldemort-shell.bat store_name bootstrap_url [command_file] 
goto :eof 
:continue 

setlocal 
SET BASE_DIR=%~dp0.. 

%BASE_DIR%\bin\run-class.bat jline.ConsoleRunner voldemort.VoldemortClientShell %* 

endlocal 

:eof 

https://gist.github.com/erikhoward/344450

運行class.bat:

關閉@echo

Apache許可證下REM REM版權所有2008-2009 LinkedIn,公司REM版權所有2010埃裏克·霍華德http://www.gonosql.comhttp://erikhoward.net REM REM許可,2.0版(以下簡稱「許可證「); REM除非符合許可證,否則您不得使用此文件。 REM您可以在REM REM獲得許可副本http://www.apache.org/licenses/LICENSE-2.0 REM REM除非適用法律要求或書面同意,否則根據許可分發的軟件REM按「原樣」基礎發佈,REM無任何擔保或條件,無論是明示還是暗示。 REM請參閱許可證以瞭解許可證下特定語言的權限和REM限制。 REM

組計數= 0 用於%%一個在(%*)執行設置/一個Count + = 1 如果%計數%GTR 1轉到:繼續 回聲%0 Java的類名[選項] 轉到:eof :繼續

SET BASE_DIR=%~dp0.. 
SET CLASSPATH=. 

for %%j in (%BASE_DIR%\dist\*.jar) do (call :append_classpath "%%j") 
for %%j in (%BASE_DIR%\lib\*.jar) do (call :append_classpath "%%j") 
goto :run 

:append_classpath 
set CLASSPATH=%CLASSPATH%;%1 
goto :eof 

:run 
REM You might have to adjust the max allowable memory setting to fit your environment 
if "%VOLD_OPTS%" == "" set "VOLD_OPTS=-Xmx256M -server -Dcom.sun.management.jmxremote" 
java -Dlog4j.configuration=src/java/log4j.properties %VOLD_OPTS% -cp %CLASSPATH% %* 

endlocal 
:[email protected] off 

REM 
REM Copyright 2008-2009 LinkedIn, Inc 
REM Copyright 2010 Erik Howard http://www.gonosql.com http://erikhoward.net 
REM 
REM Licensed under the Apache License, Version 2.0 (the "License"); 
REM you may not use this file except in compliance with the License. 
REM You may obtain a copy of the License at 
REM 
REM  http://www.apache.org/licenses/LICENSE-2.0 
REM 
REM Unless required by applicable law or agreed to in writing, software 
REM distributed under the License is distributed on an "AS IS" BASIS, 
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
REM See the License for the specific language governing permissions and 
REM limitations under the License. 
REM 

set Count=0 
for %%a in (%*) do set /a Count+=1 
if %Count% gtr 1 goto :continue 
echo %0 java-class-name [options] 
goto :eof 
:continue 

SET BASE_DIR=%~dp0.. 
SET CLASSPATH=. 

for %%j in (%BASE_DIR%\dist\*.jar) do (call :append_classpath "%%j") 
for %%j in (%BASE_DIR%\lib\*.jar) do (call :append_classpath "%%j") 
goto :run 

:append_classpath 
set CLASSPATH=%CLASSPATH%;%1 
goto :eof 

:run 
REM You might have to adjust the max allowable memory setting to fit your environment 
if "%VOLD_OPTS%" == "" set "VOLD_OPTS=-Xmx256M -server -Dcom.sun.management.jmxremote" 
java -Dlog4j.configuration=src/java/log4j.properties %VOLD_OPTS% -cp %CLASSPATH% %* 

endlocal 
:eof