Installing self hosted runtime on windows 7(copying data from sql server to Data Lake(parquet) )

Sunil Bailwal 6 Reputation points
2022-02-10T18:13:29.867+00:00

I am trying to copying data from sql server to Data Lake(parquet).I have installed self hosted runtime on windows 7 64 bit.

I am following the below solution :

https://learn.microsoft.com/en-us/troubleshoot/azure/general/error-run-copy-activity-azure

The self hosted runtime is installed in C:\Program Files\

I am Trying To Install JRE on the same location(C:\Program Files) but it always pick : C:\Program Files (x86)\Java\jre1.8.0_321.

I have set the java_home path to : C:\Program Files (x86)\Java\jre1.8.0_321

Also there is not registry entry for JRE in windows 7 maching

I am still getting the below error.

{
"errorCode": "2200",
"message": "Failure happened on 'Sink' side. ErrorCode=JrePlatfromNotMatch,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Java Runtime Environment platform does not match the process: x64.,Source=Microsoft.DataTransfer.Common,''Type=System.BadImageFormatException,Message=An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B),Source=Microsoft.DataTransfer.Richfile.HiveOrcBridge,'",
"failureType": "UserError",
"target": "Copy_SQL_To_Parquet",
"details": []
}

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,485 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,773 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,427 Reputation points Microsoft Employee
    2022-02-10T23:28:35.14+00:00

    Hello @Sunil Bailwal ,

    Thanks for the question and using MS Q&A platform.

    As we understand the ask here is that you have installed SHIR in Windows 7 operation system and trying to use it in your copy activity but having the above error. Please correct if I'm not accurate.

    As per the official MS documentation, Self-Hosted Integration Runtime is supported only in below mentioned operating systems:

    173295-image.png

    You can also refer to Requirements in Integration Runtime download page: Download Microsoft Integration Runtime

    173279-image.png

    In general, for copy running on Self-hosted IR (hosted in the supported operating systems as mentioned above) with Parquet file serialization/deserialization, the service locates the Java runtime by firstly checking the registry (SOFTWARE\JavaSoft\Java Runtime Environment\{Current Version}\JavaHome) for JRE, if not found, secondly checking system variable JAVA_HOME for OpenJDK.

    • To use JRE: The 64-bit IR requires 64-bit JRE. You can find it from here.
    • To use OpenJDK: It's supported since IR version 3.13. Package the jvm.dll with all other required assemblies of OpenJDK into Self-hosted IR machine, and set system environment variable JAVA_HOME accordingly.
    • To install Visual C++ 2010 Redistributable Package: Visual C++ 2010 Redistributable Package is not installed with self-hosted IR installations. You can find it from here.

    Reference: Parquet format in Azure Data Factory

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments

  2. Sunil Bailwal 6 Reputation points
    2022-02-11T07:17:34.043+00:00

    I am able to run the copy activity for parquet sink file on windows 7. I was installing wrong version JRE 32 bit. I installed the correct JRE 64 bit version and set the path for system variable JAVA_HOME = "C:\Program Files\Java\jre1.8.0_321"