Installing ybtools on Windows
Make sure that Java 1.8 64-bit is installed on your client system. See Installing the Java Runtime Environment.
Follow these steps to install the client tools on a Windows client system:
Changing the Console Code Page
After installing
ybtools
, run a simple ybsql
command and check for the following
WARNING
message:
WARNING: Console code page (437) differs from Windows code page (1252)
8-bit characters might not work correctly....
To change the console code page:
- Each time you open a new command line console, set the code page by
entering (for example):
at the command prompt, wherechcp 1252
1252
is the Windows Latin 1 (ANSI) code page. Set the code page for your environment, as indicated by the warning message. If you are using Cygwin, you can put thischcp
command in/etc/profile
. - Set the console font to
Lucida Console
; the raster font does not work with the ANSI code page.
JVM Settings on Windows Clients
Under normal circumstances, the default JVM settings for Yellowbrick client tools
should be appropriate for most workloads. However, you may need to increase
these settings because of memory requirements, for example. If so, here is an
example you can follow for ybload
:
@echo off
: Set base options for JVM
if not defined JVMOPT (
set JVMOPT=-Xmx16g -Xms1g
)
: Override launch using JAVA_HOME/JAVACMD
if defined JAVA_HOME (
set JAVACMD="%JAVA_HOME%\bin\java"
)
if defined JAVACMD (
%JAVACMD% %JAVAOPT% %JVMOPT% -classpath "%~dp0ybload.exe%" io.yellowbrick.ybload.Main %*
) else (
"%~dp0ybload.exe%" %*
)
Save these settings to a file such as ybload.bat
and place the
file next to ybload.exe
in your ybtools
installation.