Exporting Mappings from Informatica server - java

My Requirement is to export mappings from informatica Server.i am using pmrep command for the same .Currently i am running pmrep command on the machine on which informatica server is Installed and its exporting successfully on the same machine after running command.But My req is to run the command remotely from some other machine and want to store mappings on my local system not on the machine on which Informatica server is installed.Is there any possible way to do that. or some other command which do the needfull. Hope my Requirement is clear to all.Can anybody help me out with some solution..
Thanks.

You have to login to the informatica server using ssh and run the export. After the export file is created, you can do FTP to download the file to your local machine.

All you need is a properly configured client machine. Try installing the client, run pmrep and get back with the details if you'd be getting any errors and would need some help.

Hi,
You can have a script once the mapping is imported in the server, move or copy the mapping in to your local path. The script should include url and password of the local machine

Related

$PATH is different when using ssh vs using java

When I ssh into a server, I can see that the PATH variable is set as required with some custom folders added required.
When I try to connect to the same server using com.jcraft.jsch.JSch library in Java, the PATH is set to something else.
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
This seems like a out of the box value and doesn't include the custom folders as required. None of the commands that I need to work when I connect through Java unless I give the full path to the executable. I need to connect to different servers and they might be set up with executables in different locations so this is not an option.
I was hoping someone could help me figure out why the ./bashrc file doesn't run when I connect using Java. Should I have to run it manually?
Thanks in advance.
When you connect using command-line SSH, your "default command" is whatever shell you have set up for your username on the remote machine (probably bash, which you can change with chsh), and then bash imports your .bashrc file.
When you connect using JSch, the type of Channel that you open will determine what will be done with your connection. From what I understand about how JSch works, chances are that JSch is not opening bash when it opens the SSH session.
As a general rule of thumb, try using ~/.ssh/environment to set up your PATH instead of .bashrc if the SSH daemon is configured to allow it. This will always be imported before SSH runs any commands, including the shell, so it's more reliable for setting up your PATH.
More info can be found in this Unix StackExchange post about .bashrc, PATH, and SSH, including some alternatives to my answer.

java program to Connect remote machine and execute batch file through WinRm

1)I partially connected to remote machine and use WinRm through Java to execute .bat file using xebialabs.overthere jars, which got rejected due to licence issue.
2) I even tried to connect remote machine and run batch file through PSExec (without using WinRm), but due to constraints of installing PSExec to our Master machine, this solution was scrapped.
Please help me if there is any way to get this done.
Thanks in Advance

Problems about Jenkins running remote shell script

I have some question when using jenkins.
the scenario:
I have installed a tomcat on machine A,and config all necessary environment including JDK, and they work well.
I wrote a shell script named restart.sh to kill the tomcat process,and restart.
I execute the script and it works well.When I check the tomcat process using ps -ef,and it shows the exact JDK path as I already config.The JDK path is /usr/local/java/JDK7
When I execute the restart.sh script via jenkins,problem comes. I can see the tomcat process using the wrong JDK path,/usr/bin/java,not the path as i config. I use SSH Publishers plugin to run the remote script.see as the image below:
enter image description here
I don't know how this problem happen,please help,Thanks all
This might be the problem of path variables, just to cross verify , find JAVA_HOME on your server 1. By logging onto server manually 2. From Exec command of your ssh section of your jenkins job , most probably you will find the answer.
i'm assuming you're jenkins is configured to use jdk which is defined at its root level.
if this didn't solve , we need to look into this problem from another angle.

How to start the local neo4j server on Windows using PowerShell script?

I have downloaded the zip folder of neo4j community edition version-2.3.1 in order to start connecting the neo4j server through Java code. I want to create graph database for indexing of the data. Followed this link originally.
PROBLEMS
I'm unable to start the neo4j server as the batch file is deprecated and it displays the following message:
Tried using the PowerShell scripts commands also with reference to this link, it just opens the script file. the server is not started with these commands.
Where I am going wrong and what is the right procedure to start the local neo4j server and connect it through Java code to create nodes and relationships of the graph.
The batch file will still work even though it has been deprecated. It appears that the batch file cannot find the Findstr command.
findstr.exe should be in %windir%\system32\
If it is there and you are getting the findstr is not recognized as an internal or external command” error, check that %windir%\system32\ is in your PATH.
Once that works, try the Neo4j.bat file again.
And as Anton mentioned, please explain how the Powershell didn't work and what actions you took.

"Failed to create java" on running Windows service

I have a java application, which has to run as windows service.
I am able to install the service using the following command.
"%EXECUTABLE%" //IS//%SERVICE_NAME% --StartClass %STARTER% --StopClass %STOPPER% %START_PARAMS% %STOP_PARAMS%
The service is installed successfully but when i try to run it it shows Failed to create java. path also it is not showing in the jkartha log file.
I have JAVA_HOME environment variable pointing to jdk1.5.
and even i copied msvcr71.dll to windows\system32 folder and restarted the PC.
I am running this on windows 2008 server.
I didn't install apache tomcat server. prunsrv.exe and procmgr.exe i just copied.
Please suggest me how i need to overcome this problem.
whether to run application as windows service, prunsrv.exe, prunmgr.exe are enough is it? I am able to successfully install but not able to start why???
You probably need to set your service to run as the user that installed Java, otherwise it won't find its environment variables.
If you must run in the default Local System account, then you can run a batch file that sets up the environment and then launches java.exe.

Categories

Resources