Unable to connect to sql server database from azure HDinsights spark cluster using sqoop - azure

Getting firewall errors, don't know y because all ports were open and m able to connect it from other clients as well. Even not able to ping my linux cluster from other machine.

Screenshot shows
... Login failed for user ''
Did you specify the credentails (Arguments: --username and --password)

Related

Running nodejs Script to create table from local machine terminates Cloud SQL connection

I am trying to run the command node createTable.js $DB_USER $DB_PW $DB_NAME $CLOUD_SQL_CONNECTION_NAME from windows power shell as it is indicated in the Google cloud Platform nodejs samples for connecting to cloudsql from cloudrun using knex in this repository.
I have intalled and Started the Cloud SQL Proxy and followed all the instructions including adding service accounts in the sample. But each time I run the createTable.js script from power Shell, I get the following errors in Powershell:
When I inspect the logs, I get the following in Cloud SQL
"db=cloudsqladmin,user=cloudsqladmin FATAL: terminating connection due
to administrator command"
See attached image below:
I don't know what possibly could be causing the error.
PS: I have tried to connect to cloud SQL from Cloud console and this worked fine, However, When I try this from my local machine using Powershell, It shows the above error
It looks like you're trying to connect to Cloud SQL using the instance's public IP address. If you're connecting through the Cloud SQL Proxy, you should be connecting to localhost or 127.0.0.1 at whatever port the proxy is running on.
To launch the proxy in TCP mode, run:
Start-Process -filepath "C:\<path to proxy exe>" -ArgumentList "-instances=<project-id>:<region>:<instance-name>=tcp:5432 -credential_file=<CREDENTIALS_JSON_FILE>"
Then run
$env:DB_USER $env:DB_PW $env:DB_NAME $env:CLOUD_SQL_CONNECTION_NAME node createTable.js --dbHost "127.0.0.1:5432"
The proxy allows you to connect to your instance without having to add your machine's IP to the instance's allowlist. If you try to connect directly and your IP isn't on the allowlist, you'll get an error.

Connecting azure database container from local machine?

I want to load data from local machine into Cassandra database running on azure cloud container services. I am new to Azure and I am pretty sure I need to enable something to make connection to azure cloud from outside network.
I created docker swarm cluster in Azure container services and deployed Cassandra docker container. I have a public IP to access the container and am trying to use public IP to connect to cassandra container, from my local machine, to load data. However, when I ran my java program which connects to Cassandra database, through host, I am getting error
DEBUG com.datastax.driver.core.ControlConnection - [Control connection] error on
I appreciate your time and help.
Thank you

How to migrate a dockerized SQL Server database that uses a custom port to Azure SQL

I am hosting a bunch of micro-services and bot apps using Docker, and Azure virtual machines. There´s also a dockerized SQL Server 2017 instance in the stack, which I would like to migrate to Azure SQL. I am out of luck when trying to configure the source database in an Azure Database Migration project...
I tried to specify the service endpoint including the exposed port (since the dockerized SQL Server container´s public port is not 1433). I can connect to the SQL Server instance using SSMS from my workstation with no error, so connectivity is not the problem at all; does the Azure Database Migration require port 1433, or if not, how can I correctly specify a different port?
These are the error details I got from source details configuration in the Azure portal:
Error Type
Failed to connect, please check error details
Error Detail
Collector 'Microsoft.SqlServer.Advisor.SqlQueries.Contracts.Models.IQueryServerProperties' failed to collect data. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid)
The parameter is incorrect
The source database configuration wizard is not very clear about the format of the remote server´s DNS name. Just specifying the fully qualified DNS name and port is not enough; it must contain the server´s instance name as well.
Wrong:
<DNS-name>,<port>
Correct:
<DNS-name>\<INSTANCENAME>,<port>

Connect to Sql Server of Windows Azure VM from local Sql Server

I am trying to connect to my Sql server 2012 which is setup on Azure VM. I am trying to connect it from my local Sql server 2012. I have tried all these steps
http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-provision-sql-server/
But still not able to connect. I getting this error
Can Some please help me to solve this problem?
Since you're connecting to cloudnet.app domain address I assume you don't use VPN. This means:
- SQL Server authentication should be set to mixed mode
- SQL login should be created or enabled
- In case enabling SA login make sure you set the password
For connectivity part I agree with Jason's suggestions, but I would not disable firewall, since with endpoints facing public internet it is your last line of defense on the VM. Just make sure you have allow rule for the SQL Server port (most likely 1433).
Confirm the following:
You have configured the cloud service port 57500 (from the screenshot) to forward to the port that SQL is configured on, typically 1433.
Turn off the firewall within the VM. Once you get a working connection, I would reconfigure the firewall to only open the port(s) you need for security. The instructions you provided show how to open a specific port, but you should first disable the firewall to rule out a misconfiguration there.
Remote into the VM and ensure that you're able to use the management tools on that machine to make a local connection. This will help rule firewalls and the load balancer for the cloud service.

How to run the Azure Cloud Service without using Sql Azure Database?

My azure application successfully running with azure sql database,but now i want to run Cloud application with my own database servers because of their data security. for this, we can establish the local database connection from our own systems with cloud application and connect to my database perfectly with following steps using below link,
http://www.codeproject.com/Articles/261063/Azure-Virtual-Network-Connecting-Local-Database
After this i deployed my application in to azure and it deployed without any error.but when i try to run my cloud application using cloud url like xxx.cloudapp.net getting an error like
"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - The requested name is valid, but no data of the requested type was found.)".
Please give some suggestions why am getting this error.
Thanks,
PCSSCP.
Try connecting using SQL Management from another machine outside of your network. I believe that there is no problem with publication in Azure Cloud Service, but a connectivity problem with your SQL server.
Arthur Oliveira
You have to remote to VM and check SQL Server port is opened or not, the same with SQL Server machine. I used to connect local DB with cloud based application.
This is an intermittent issue with the SQL Server.
Check this link if it helps,
IntermittentSQLServerIssue

Resources