How to share a database connection with a joblet in Talend - talend

I have a job with a tMSSqlConnection setup, and I need to share that connection with a joblet. I found instructions online saying to register it as a shared connection, and then add an option in dynamic settings of the joblet components with that connection name, so it can be selected from the component list of connections. However Java is complaining when I try to do this.
The job + joblet works fine if I do not try to share the connection.

Add tMSSQLconnection component in JobLet
Click on register connection check box.
Give the same "Shared DB connection name" which has been assigned in parent job.
use joblet`s connection component name in drop down list.
this will solve your problem.

I figured out that you need to put a pre-job in the joblet and then connect the tMSSQLconnection, and then use the share or register a connection, as UmeshR mentioned. But the thing I was missing was that you CAN put a pre-job in a joblet.

Related

not getting mongoDB collections via retool query

I've connected mongoDB as a resource for retool and created a query for it in my retool app, but the queries don't really work for me. The action query "listCollections" goes through but it gets wrong info on those collections but the action query "find" and other actions report the error message "Collection names cannot be empty". Where is the problem, I can't figure it out!
Thank you for the attention! Hope anyone can reach out and help
I had the same issue and it started at the same time as yours, this worked for me try doing the following:
1- Goto MongoDB->"Data Access" and provide your user "admin" status
2- Open Retool Query library add a new Resource using the connection string of user you just made admin.
3- Test the connection and save it.
4- Refresh retool and try again.
Hope it helps :-)

RubyMine connect to database

I'm using latest version of RubyMine and when I try to connect to my docker container database, I see the database, but not any of the tables etc.
If I use an external program such as Psequal using the exact same credentials, it works fine so I know I'm using the correct credentials, IP address etc.
I have raised an issue with JetBrains, but can anyone shed any light on why I'm not seeing the tables?
Figured it out. in the data source properties window (either when creating the data source or by right clicking->properties)
Go to options and tick the box "Introspect using JDBC meta data"
Click apply and you see a downloading progress bar
Once completed, the tables and everything else is viewable.

Lost Microstrategy Administrator Password?

In researching this scenario, all I could find was a suggestion that you contact Microstrategy, send them your metadata DB and ask them for the password.
This CAN'T be the only way.
Is there no way to simply reset the password in some fashion? Looking at the DSSMDUSRACCT table in the metadata DB, this appears to hold (at first glance anyway) a hashed/encrypted password, but I don't believe this is correct, as every entry for every account is the same in the PASSWD field.
Can someone suggest an alternative beyond sending a database to Microstrategy?
There isn't any alternative. We ended up in similar scenario and had Microstrategy reset the password. Password is not easily recoverable from Medadata since it is secured.
I'm not sure how many projects you have in your metadata or if you have access to another user that may have all privileges; but another option would be to create a new database, use MSTR configuration wizard to populate metadata tables, then duplicate the project across project sources into the new metadata that was just created. The Administrator user in this new metadata will have a blank password. If this is not an option then I recommend to open a support ticket (as others have suggested).
One of the things which one can try is to see any command manager script or system manager workflow. Every MicroStrategy environment may have atleast one of the above two things running in their environment. If you check the file, you may see the password for the administrator user. But in case if there is none of these being used then contacting MicroStrategy support would be the right thing to do.
Thanks,
Nikhil.
Benedict's right, there's no way they would keep passwords in plaintext in the metadata. You'll have to send it to them in a support ticket. It can take quite a few days, but they get the job done.
as soon as you get it reset use object manager, create a configuration object package for the administrator account and anytime you forget it, just redeploy the package to reset it.
You could try using the MicroStrategy Object Manager to copy the Administrator user from another project source/server to this environment.
This should do the trick if you have at least one other user with the right administrative privileges.
The other day I wanted to login to one of our applications. However, I forgot my username and password. I tried using the forgot password wizard but had no luck.
The steps I am about to walkthrough will work with most web applications with average logon security measures. It may not work with MicroStrategy, but should work if the input password is not externally verified.
So this is how I got access:
First I logged into my database manager -If you don't have access to
this... run a scan for 'password' on your server root. For Linux I
write sudo grep 'password' -roni or try: db_pass, dbpass,
database_password, etc as other search terms... The -roni will apply various filtering and
options to the search... aka line number, file name and etc. After
getting some results... find a likely file and open it to see if you
have your database details in there.
Login to your database manager. Find the table associated with your account. (This will usually have the name X_users If the password isn't hashed, just take it and login with it... if it is hashed... copy the hashed value to your clipboard.
Change the directory to your chosen applications root.
Run the scan with the search term 'password' or 'md5(' ...this will hopefully bring up a login controller file.
Edit the line within the function that takes your login input. Change the value 'md5($#####)' with '$#####', (aka removing the md5hashing of your input).
Reload the login page. Now, enter your username and hashed password copied from the database and login.
If done correctly you should now be logged into your web app.
Change the password of the account. Now go back to the login controller file and undo the chnages.
This might not be applicable with your app in question, but it's worth a shot! ....and if it isn't appropriate for your scenario... it could still be very helpful for someone else with a similar problem and different application. I just thought there's a small chance it may help someone who's locked out of one of their web applications. Rather than having to reinstall and lose data.
I'd be happy for you to improve on this or give some feedback.

Server not visible in client

I'm trying to add a server in pgAdmin 3 to get started, but somehow server is not added. I fill all the fields as described here but after OK button is pressed client writes in the bottom left corner "Connecting to database.... Done." and that's it. I presume it's quite trivial, but can't figure out what's wrong. Please, help.
NOTE: Using win xp.
Your sure after you see the done text there is no server group name in the Object Browser?
Normally after you see the done message click on the server name in the object browser. You named this when you created your connection. Once you click it, it will open up a tree view of objects for you to explore.

The remote name could not be resolved: 'graph.facebook.com'

I'm using the FaceBook C# SDK for the first time.
Since I have a simple application I want to create I have picked up the sample Azure MVC application and modified it to point at my facebook application instance and secret as per the configuraiton guidance.
I want to retrieve a months status messages so I need authorisation which has worked thanks to CanvasAuthorize(Perms = "user_about_me") attribute.
However now when I goto the about view I get an error in the controller first:
dynamic result = fbApp.Get("me");
The actual error is listed as:
The remote name could not be resolved: 'graph.facebook.com'
Can anyone help me identify what I am doing wrong?
Many thanks,
_David
That sounds like a temporary connectivity issue. The server (or your computer) is having trouble resolving http://graph.facebook.com. Try to going to http://graph.facebook.com/microsoft in your browser and see what happens.
Make sure that you have the correct fb_key and fb_secret values. In my case I have added them in the web config file but when I read the values I have given a wrong name to retrieve. client_id and client_secret values were not set. As a result this error popped out.