-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help executing DS35 #5
Comments
Happy to help you get things going. I have not tried running DVD Store for SQL Server on a Linux system recently. I have used a windows client with a linux based SQL Server database successfully - so I know that it will work. However, the DVDStore kit doesn't currently create a .sh linux style set of scripts for the SQL Server version. If you are wanting to use a windows client ultimately - it will likely be easier to simply begin using a windows client now. You will just need to install SQL Server Client for Windows (MsSQLCmdLnUtils.msi) , an ODBC required component (msodbdsql.msi) and Strawberry Perl for windows (strawberry-perl-5.32.1.1-64bit.msi or current version). Then you will be able to run the resulting .bat script from windows client. In the ds35/sqlserverds35 directory there should be a file - sqlserverds35_create_all_concurrent_14GB.bat . It's contents should look something like this and show the order of running the scripts in the build and load directories. You could try running these on the Linux system, but there are some windows style paths in them that will cause them to break. So running from windows client will be much easier: REM remote_sqlserverds3_create_all_concurrent.bat Please let me know if you have any issues or more questions. Thanks, |
Thank you Todd, after installing Full-Text Search i was able to execute the .bat script from windows client without any issues but execution of ds35sqlserverdriver.exe is failing with Thread 0: User user15891235 not found, thread exiting Can you please take a look and let me know your inputs? .bat execution succeeded: Changed database context to 'DS3'. E:\DS3\ds35-main\sqlserverds35\build>sqlcmd -S 172.x.x.x -U sa -P password -i sqlserverds35_create_user.sql ds35sqlserverdriver.exe fails: Using WIN32 QueryPerformanceCounters for measuring response time Performance Counter Category Test and Counter MaxRT exist Please let me know if any further details are needed |
Maze, This error literally means that the named user - user15891235 - is not found in the database. This means that either the database did not load correctly during the create_all script or you have specified db_size for the driver program to be larger than what was loaded. The output shows that you have set db_size to 24GB. In your initial question you had specified 14GB - so this might be your problem. What size did you specify when you ran InstallDVDStore.pl? You will need to specify the same size that you used in InstallDVDStore.pl in your config_file - DriverConfig.txt - which I'm guessing is 14GB. If this isn't the problem, then we will need to try to load the database again. Send me all of the output from when you run the ds35sqlserver_create_all_XXgb.bat I would also suggest trying a smaller size of 1GB or even less to get things working the first time. Then increase the size to what you want to target. Using a smaller size allows you to move more quickly and resolve issues with configuration / setup faster. Let me know how it goes. Thanks, |
Hi Todd, sorry for the confusion, i deleted that 14GB and started with a clean 24GB DB |
Maze, The load is finishing very fast. Probably too fast to have actually been successful. There are logs from the load in the ds35\sqlserverds35\load\ directories. Could you check a few and see if there are any errors? Please send me one and I can look at it if you like. For example you could send me c:\ds35\sqlserverds35\load\cust\172.x.x.x\us_cust1.log You can run the load scripts directly to see what happens. Try running this one for example: c:\ds35\sqlserverds35\load\cust\172.x.x.x\remote_sqlserverds35_cust_load1.bat I wonder if the bcp (bulk loader for sqlserver) that is called in these scripts is having a problem working because it is a Linux host? The logs should really show if this is the case or not. Thanks, |
Hi Todd, Log shows the below error and same is seen with manual execution of the ds35\sqlserverds35\load\cust\172.x.x.x\remote_sqlserverds35_cust_load1.bat script Starting copy... 0 rows copied. i cannot add the full us_cst.csv file due to size limitations, for validation i tried only with four rows to confirm the failure |
The data files that were created are Unix/Linux style files, but I think
that SQL Server is still needing windows style files. Just rerun the
InstallDVDstore.pl script and specify windows as the DB host type. Then
just rerun the create all bat and it should work.
Thanks,
Todd
…On Wed, Mar 6, 2024, 10:29 PM Maze999 ***@***.***> wrote:
Hi Todd,
Log shows the below error and same is seen with manual execution of the
ds35\sqlserverds35\load\cust\172.x.x.x\remote_sqlserverds35_cust_load1.bat
script
Starting copy...
SQLState = S1000, NativeError = 0
Error = [Microsoft][ODBC Driver 17 for SQL Server]Unexpected EOF
encountered in BCP data-file
0 rows copied.
Network packet size (bytes): 4096
Clock Time (ms.) Total : 391
i cannot add the full us_cst.csv file due to size limitations, for
validation i tried only with four rows to confirm the failure
attaching the us_cst.csv file which has only that four entries for
reference
us_cust.csv <https://github.com/dvdstore/ds35/files/14518710/us_cust.csv>
—
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZ36KU3YPJSIGLWPT7O4TDYW7UK3AVCNFSM6AAAAABEGOBH5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBSGMZDMOJSGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thank you Todd, i was able to execute with the suggested change |
I am exploring ds35 for the first time and trying to use if for MSSQL DB(Linux) following the below steps.
Client: Windows 2019
DB server: MSSQL (Linux)-SLES15SP4
Following the documentation I have downloaded the ds35 to the DB server and executed the Install_DVDStore.pl
Initializing parameters...
Database Size: 14
Database size is in GB
Database Type is MSSQL
System Type for DB Server is LINUX
File Paths : /home/DS3-SQL/
Calculating Rows in tables!!
Large size database ( greater than 1 GB)
Ratio calculated : 0.14
Customer Rows: 28000000
Order Rows / month: 1400000
Product Rows: 140000
Creating CSV files....
Starting to create CSV data files....
For larger database sizes, it will take time.
Do not kill the script till execution is complete.
…..
Scripts that are created from template files have '_' 14 GB in their name.
User can edit the sql script generated for customizing sql script for more DBFiles per table and change the paths of DBFiles.
Now Run CreateConfigFile.pl perl script in ds3 folder which will generate configuration file used as input to the driver program.
Can you please help me with the sequence of scripts to be executed for the step “Use scripts created by InstallDVDStore.pl to create and load database”?
Apart from executing locally on the DB server how can we build and execute from the windows client as mentioned in the documentation? is it only applicable between windows client and windows DB host or can be done between windows client and Linux host acting as DB server
“The database creation has been almost completely automated in order to accomplish
the above mentioned parallelization and also to make it easier to setup and use.
It is designed to be done from a remote client or driver system that is not the
database host. It is still possible to run it all locally on the database system
if desired, although a remote driver is recommended.”
The text was updated successfully, but these errors were encountered: