I started hiveserver2. I am trying to connect to the server through beeline with
beeline> !connect jdbc:hive2://localhost:10000/default
Then I give a blank username and password and get this error:
castor is not allowed to impersonate anonymous
Please can someone help me connect
You need to set proxyuser propertyfor impersonating at core-site.xml
ie
hadoop.proxyuser.hive.groups=*
hadoop.proxyuser.hive.hosts=*
you can find more logs on oozie launcher logs will help you debugging more.
Related
I set up a script to connect on webdav server.
I run winscp with this parameters:
"C:\Program Files (x86)\WinSCP\winscp.com" /script=script.txt /log=winscp.log /ini=nul
Then, the script is:
open davs://user#company.com:password#querty.sandbox.company.com/in/my.servlet/webdav/Catalogs/company/
synchronize remote -mirror D:\winscptest\files\ /in/my.servlet/webdav/Catalogs/company/
close
exit
When i run the command, authentication fails, with this output:
Connecting to host...
Authenticating...
Access denied.
Authentication failed.
Could not authenticate to server: rejected Basic challenge
Connection failed.
If i configure the connection in winscp (with GUI), all works fine.
Can someone help me to configure the script correctly?
Thanks
#MartinPrikryl thanks for your attention.
I contacted webdav server 's administrator, to check log their side, and he noticed that account was blocked, may be to many tries with wrong password.
Then i understand that username and password must be url enconded to use it in a script.
#MartinPrikryl great work with winscp, i love it.
Bye
When i create a data source from my Weblogic version 10.3.3.0 to Oracle Database 12C.
I get the below error :-
Connection test failed.
Message icon - Error ORA-01017: invalid username/password; logon denied <br/>oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)<br/>oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)<br/>oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)<br/>oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)<br/>oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406)<br/>oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)<br/>oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:799)<br/>oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:368)<br/>oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)<br/>oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)<br/>oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)<br/>oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)<br/>com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:505)<br/>com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:458)<br/>sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br/>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>java.lang.reflect.Method.invoke(Method.java:597)<br/>org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)<br/>org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)<br/>...
I have checked my creds and jdbc string but not sure what's going wrong.
Any suggestions , please assist.
You can check if you use a simple DataSourceSample.java to connect successfully. Make sure all your credentials are correct.
I am trying to connect mysql database with mulesoft database connector, but it is giving error while I do test Connection. I am not able to figure out what is wrong I am doing. Could you please put me in right direction?
Please ask for more information you need from me.
The problem you are facing is not because of Mule component.There may be several other reasons at MySQL side.
As you can see that your credentials are processed by MySQL however denied.This suggests that the problem may not be directly
related with credentials because if credentials were wrong the error would have been different then denied.
When credentials are denied, the problem is mostly related with:
Permission issue - Solution >> Grant permission to use "db_name" from "Localhost"
Your connection string looks fine but sometimes string encoding result this error
Some installed components are interfering with MySql -> Check the components installation
Also
LOCALHOST and "machine name" aren't the same to MySQL.
I'd check from the command line that you can connect to localhost:
mysql --user=<user_name> --password db_name
Enter password: your_password
If it fails, connect and run this with the appropriate permissions:
create user db_name#localhost identified by 'db_name';
grant select on <user_name>.* to db_name#localhost;
Never mind :) I found the solution although did not find what the problem was only suspecting that the root was not having any schema privileges ( as shown by MySQL Workbench GUI).
Earlier I was using command line with which I am not well versed; after struggling a little I downloaded MySQL workbench and added one more user with all administrative and schema privileges and used that to connect with Database connector and God Damn!! it's working.
on my windows 10 system every time I attempt to login I see the following error.
ORA-01017: invalid username/password; logon denied
During the install process I was not asked to create any users. I do seem to recall that I was asked to enter 'Oracle_1' as the admin password but I was not asked to enter an admin userid. I could not login with that id.
I was able to start a sqlplus session by executing "sqlplus /nolog". However, once in the session I really could not do anything, even a help command failed because I was not connected to a database.
On windows 10 how do I create a user that will enable me to successfully login and manipulate database tables ?
In Eclipse on a Tomcat server, the config file is under Overview>Open Launch Configuration> Arguments Tab> VM arguments. Make sure the keys for -Ddb.user and -Ddb.password are correct. Also check the information in c:\users\\config\customProperties\startup\application.properties. Perhaps someone more experienced may chime in based on your current set-up.
I need your help in resolving an issue related to Hive Permission. I have enabled Sentry in CDH 5.5 environment but Kerberos is not sent. I could not able to create roles or grant permission to hive objects. For every access need to login through root and sudo to hive and access the object.
When i try su to hive from hdfs user and try giving below command
set role admin;
FAILED: SemanticException The current builtin authorization in Hive is incomplete and disabled.
Please suggest me how to resolve this.
Thanks & Regards