Azure Data Studio Machine Learning - Python and R Packages not being recognized - sql-server-2019

I'm setting up Azure Data Studio ( ADS ) 1.29 running the Machine Learning extension , to manage SQL 2019 Machine Learning Services in Win2016. The reason for running ADS is so I can install Python and R packages into SQL MLS via ADS. Ultimately we will use this against an Azure SQL Managed Instance ( MI ).
I have configured the default Python and R directories installed by SQL 2019 MLS on the server, as my Python and R machine learning paths in Settings\Extensions\Machine Learning.
When I go to the ADS Machine learning extension and click on "Manage Packages" I get these errors which I cant resolve :
"the following R packages are required to be installed vctrs, odbc , sqlmlutils"
These R packages are confirmed installed in SQL server.
Not sure how you check if they are installed in ADS?
"the following python packages are required to be installed sqlmlutils==1.0.3"
These Python packages are confirmed installed in both ADS and SQL server.
"Failed to complete task 'Verifying package management dependencies' : Error invalid selection.
This error directly above seems to be a result of the first 2 errors.
I have tried reinstalling ADS in new directory etc but this has not worked.
Any assistance appreciated....

A solution :
It appears when you configure ADS it needs this very specific configuration, right down to the .exe name
Machine Learning: Python Path :
C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\PYTHON_SERVICES\python.exe
Machine Learning: R Path :
C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\R_SERVICES\bin\R.exe
Install this SSL workaround for Python, if needed from
https://sourceforge.net/projects/openssl-for-windows/
file is : Win64OpenSSL_Light-1_1_1k.msi
Also you need to install the odbc and sqlmlutils as per these instructions :
https://github.com/microsoft/sqlmlutils/blob/master/R/README.md
Windows
Download the latest release from https://github.com/microsoft/sqlmlutils/releases:
From command prompt in directory where R.exe resides , run
R.exe -e "install.packages('odbc')"
R.exe CMD INSTALL sqlmlutils_1.0.0.zip
Once all this installs and runs, you should then be presented with an option to manage both Python and R packages within the Machine Learning extension.
We also found R packages could not be installed in SQL MAnaged Instance or On Prem until you go to ADS version 1.31.0 or higher.

Related

IBM DB2 ODBC DRIVER :: SQL1390C The environment variable DB2INSTANCE is not defined or is invalid

I've followed several guides online and I cannot install IBM DB2 ODBC DRIVER on Windows.
I have downloaded the driver from IBM and installed (which was quite a roller-coaster).
If I follow guide1 or guide2 the result is the same:
SQL1390C The environment variable DB2INSTANCE is not defined or is invalid
Note: this is my C:\Program Files\IBM folder and as you can see there is no bin folder
Not sure if db2oreg1.exe -setup is still mandatory, things might have changed.
Thanks to #MarkBarinstein I found where the problem was.
I've followed this guide How to install IBM db2 ODBC driver in Windows 7 - 64 bit? and I downloaded the wrong package: I downloaded the universal_fixpack instead of the client.
I realized that when I saw the two folders in the Download directory:
So I uninstalled the universal_fixpack and installed the client and the installation was successful.

Trying to create postgres extension periods returns Cannot load library: unknown error 126

I am currently trying to build a historized database using postgres 12.4.0 and the periods extension. Everything is working fine so far on my Win10Pro X64 machine.
I setup another machine with Win10Pro X64 the same as mine - as far as I can tell:
install postgres
stop postgres service
copy contents of periods release zip https://github.com/xocolatl/periods/releases/download/v1.2/periods-v1.2-pgREL_12_STABLE-windows-x64.zip to postgres/12 dir
start postgres service
now, when I run CREATE EXTENSION IF NOT EXISTS periods CASCADE;, I get the following error only on the other machine:
konnte Bibliothek
»C:/Program Files/PostgreSQL/12/lib/periods.dll« nicht laden: unknown error 126
(in english: could not load library periods.dll)
Everything works fine on my machine
The dll file is there
The required extension btree_gist is there and loadable
How can I fix this?
Found the issue using dependency walker. The periods.dll in that release needs VS2015 debug dlls. My computer had them due to me having the sdk installed.
I needed to copy
vcruntime140d.dll
ucrtbased.dll
to c:\Windows\System32

Grafana -- Zabbix Data Source cannot connect

I've got my system all set up with Zabbix and love it for my detailed monitoring.
I need to put a pretty wrapper on it for displaying on our status screen and have been trying to use Grafana but cannot seem to get the Zabbix Data Source correctly connected.
I've hunted all around for more detailed documentation -- is there any?
OR Does anyone who has done this have some hints about what I can try?
Thanks in advance -- James
you need to install "Zabbix plugin for Grafana"
https://grafana.com/plugins/alexanderzobnin-zabbix-app
Use the grafana-cli tool to install Zabbix from the command line:
grafana-cli plugins install alexanderzobnin-zabbix-app
If you have compatibility issues, check this solution
https://github.com/alexanderzobnin/grafana-zabbix/issues/1419
In my case I have grafana running on windows server working perfectly with the following steps:
-Install grafana 8.5 on Windows Server 2019
-Install Plugin 2.4.6 via CMD (C:\Program Files\GrafanaLabs\grafana\bin grafana-cli plugins install alexanderzobnin-zabbix-app)
-Go to C:\Program Files\GrafanaLabs\grafana\data\plugins\alexanderzobnin-zabbix-app\datasource-zabbix and create new folder with name , "datasource-zabbix"
-copy the "partials" folder and copy inside the created folder "datasource-zabbix"
-Delete MANIFEST file on C:\Program Files\GrafanaLabs\grafana\data\plugins\alexanderzobnin-zabbix-app
-add: allow_loading_unsigned_plugins = alexanderzobnin-zabbix-app, alexanderzobnin-zabbix-datasource, alexanderzobnin-zabbix-triggers-panel in the configuration file (config.ini for Windows Version)
-Restart Grafana Service

The DSC provisioner could not be found

I am trying to build a local development environment with vagrant, Packer And DSC.
And I have an error saying that DSC is not found, from my understanding DSC come with Powershell 4.0 and I checked the version I have it is 5.0 (I tried to install with INSTALL-MODULE and nothing change)
I am following this blog post : http://www.onegeek.com.au/articles/machine-factories-part1-vagrant
Running in windows 10
And here is the vagrant file I use https://gist.github.com/mefellows/7e25d5dba254d5d38b51#file-vagrantfile
The error message is :
You will need to install the Vagrant DSC plugin first:
vagrant plugin install vagrant-dsc
See https://github.com/mefellows/vagrant-dsc for more details.
I have updated the gist from that article, apologies for that omission.

Sitecore Package installation not working

I am trying to install Sitecore PowerShell Extensions-3.0 Package for Sitecore 8
in my sitecore 8 instance (Windows 8.1 machine).
I used Sitecore's Development Tools -> Installation Wizard & Package Manager and choosing the above mentioned package. It shows Install a Package sitecore dialog with Installing gif and stays there for over an hour and nothing happens. No error nothing it just spins.
First I tried other Packages and it was the same, even with lower versions of Powershell Packages and it still doesn't install.
Can someone shed some lights on what I am missing?
When installing Sitecore packages entries are written to the Sitecore Log. In Sitecore 8 the Logs are stored in MongoDB, so if you don't have Mongo running installing packages appears to hang.
Although disabling Mongo Analytics allowed you to install the package it is not a suitable method moving forward. Instead you should install MongoDB and then get the Sitecore DBs running by executing a .bat file.
To do that open Notepad paste the text as it below, modifying the path to the MongoDB.exe and folder containing the Sitecore Mongo databases if required, then Save As SitecoreDbs.bat
"C:\Program Files\MongoDB 2.6 Standard\bin\mongod.exe" -dbpath "C:\inetpub\wwwroot\Sitecore8\Databases"
Essentially the path to your MongoDB executable location and the Path to your Site's databases.
By disabling Mongo Analytic did the trick.