- Подключение Excel к Apache Hadoop с помощью драйвера Microsoft Hive ODBC в Azure HDInsight
- Предварительные требования
- Установка драйвера Microsoft Hive ODBC
- Создание источника данных Apache Hive ODBC
- Импорт данных в Excel из службы HDInsight
- Дальнейшие действия
- Odbc драйвер excel 2016
- Asked by:
- Question
- All replies
- Unable to use the Access ODBC, OLEDB or DAO interfaces outside Office Click-to-Run applications
- Symptoms
- Cause
- Resolution
- Additional information for creating ODBC connections
Подключение Excel к Apache Hadoop с помощью драйвера Microsoft Hive ODBC в Azure HDInsight
Решение Microsoft для работы с большими данными интегрирует компоненты бизнес-аналитики Майкрософт с Apache Hadoop кластерами, развернутыми в HDInsight. Примером может служить возможность подключения Excel к хранилищу данных Hive кластера Hadoop. Подключение с помощью драйвера Microsoft Hive Open Database Connectivity (ODBC).
Вы можете подключить данные, связанные с кластером HDInsight, из Excel с помощью надстройки Microsoft Power Query для Excel. Дополнительные сведения см. в статье Подключение Excel к HDInsight с помощью Power Query.
Предварительные требования
Перед началом работы с этой статьей необходимо иметь следующее:
- Кластер HDInsight Hadoop. Дополнительные сведения о создании кластера см. в статье Приступая к работе с Hadoop в HDInsight.
- Рабочая станция с Office 2010 Professional Plus или более поздней версии или Excel 2010 или более поздней версии.
Установка драйвера Microsoft Hive ODBC
Скачайте и установите драйвер Microsoft Hive ODBC. Выберите версию, которая соответствует версии приложения, где будет использоваться драйвер ODBC. В рамках данной статьи используется драйвер для Office Excel.
Создание источника данных Apache Hive ODBC
Ниже показано, как создать источник данных Hive ODBC.
в Windows выберите пуск Windows администрирование > источники данных ODBC (32-разрядная версия)/(64-разрядная версия). В результате откроется окно Администратор источников данных ODBC.
На вкладке DSN пользователя выберите Добавить, чтобы открыть окно Создание нового источника данных.
Выберите Microsoft Hive ODBC Driver, а затем — Готово, чтобы открыть окно Microsoft Hive ODBC Driver DSN Setup (Настройка DSN Microsoft Hive ODBC Driver).
Введите или выберите следующие значения:
Свойство | Описание |
---|---|
Имя базы данных-источника | Присвойте имя источнику данных |
Узлы | Введите HDInsightClusterName.azurehdinsight.net . Например, myHDICluster.azurehdinsight.net . Примечание. HDInsightClusterName-int.azurehdinsight.net поддерживается до тех пор, пока клиентская виртуальная машина соединена с той же виртуальной сетью. |
Порт | Используйте 443. (Этот порт был изменен с 563 на 443.) |
База данных | Используйте значение по умолчанию. |
Механизм | Выберите Windows Azure HDInsight Service. |
Имя пользователя | Введите имя пользователя HTTP кластера HDInsight. Имя пользователя по умолчанию — admin. |
Пароль | Введите пароль пользователя кластера HDInsight. Установите флажок Save Password (Encrypted) (Сохранить пароль (зашифрованный)). |
Необязательно: выберите Дополнительные параметры.
Параметр | Описание |
---|---|
Использовать исходный запрос | При выборе этого параметра драйвер ODBC НЕ пытается преобразовать TSQL в HiveQL. Следует использовать только при полной уверенности в отправке действительных инструкций HiveQL. При подключении к серверу SQL Server или базе данных Azure SQL необходимо снять этот флажок. |
Строки, загружаемые для каждого блока | При получении большого объема записей включение этого параметра может обеспечить оптимальную производительность. |
Длина столбца строки по умолчанию, длина столбца двоичного кода, масштаб столбца десятичных значений | Длина и точность типа данных может повлиять на способ выведения данных. Это приведет к возврату недопустимой информации из-за потери точности и/или усечения. |
Щелкните Тест для проверки источника данных. При правильной настройке источника результатом теста будет слово УСПЕШНО! .
Нажмите кнопку ОК, чтобы закрыть окно тестов.
Нажмите кнопку ОК, чтобы закрыть окно Microsoft Hive ODBC Driver DSN Setup (Настройка DSN Microsoft Hive ODBC Driver).
Нажмите кнопку ОК, чтобы закрыть окно Администратор источников данных ODBC.
Импорт данных в Excel из службы HDInsight
Ниже описан способ импорта данных из таблицы Hive в рабочую книгу Excel с помощью источника данных ODBC, созданного в предыдущем разделе.
Откройте новую или существующую рабочую книгу в Excel.
На вкладке данные перейдите к разделу Получение данных из других источников из ODBC , чтобы открыть окно из ODBC .
Из раскрывающегося списка выберите имя источника данных, который вы создали в предыдущем разделе, и нажмите ОК.
При первом использовании откроется диалоговое окно Драйвер ODBC. В меню слева выберите пункт Windows. Затем нажмите кнопку Подключиться, чтобы открыть окно Навигатор.
В навигатореперейдите к кусту Default hivesampletable по умолчанию , а затем нажмите кнопку загрузить. Для импорта данных в Excel потребуется несколько секунд.
Дальнейшие действия
В рамках этой статьи вы узнали, как получить данные из службы HDInsight в Excel с помощью драйвера Microsoft Hive ODBC. Аналогичным образом можно получать данные из службы HDInsight в базу данных SQL. Можно также передавать данные в службу HDInsight. Дополнительные сведения см. на следующих ресурсах:
Источник
Odbc драйвер excel 2016
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Asked by:
Question
I’ve tried everything I can think of and find online (see below) about this subject to no avail. Please help!
My Windows 8.1 Surface Pro 3 does not have the .xlsx ODBC driver, even when I look it up in %windir%\SysWOW64\odbcad32.exe. It only has the driver for .xls, which will eventually corrupt the .xls file used for the database after a few uses.
On the Drivers tab in the ODBC Data Source Administrator, it says: «To install new drivers, use the driver’s setup program.»
Where is this driver setup program and where can I download the .xlsx driver?
Also, I just reformatted and started over again, re-installing Office 365 (includes Access) and everything else. It’s a 64-bit Windows system and 32-bit Office.
Please advise! Thanks!
I’ve already tried the advice listed in the links below without any success.
All replies
Thanks for the response.
I tried that already (c:\windows\sysWOW64\odbcad32.exe) and that ODBC Data Source Administrator does not have the .xlsx driver, just the .xls one.
The article you provided states at the top: «After you have installed an ODBC driver from the driver’s setup program. » Do you know where I can find the driver’s setup program and the .xlsx compatible driver?
I tried that already (c:\windows\sysWOW64\odbcad32.exe) and that ODBC Data Source Administrator does not have the .xlsx driver, just the .xls one.
Hmm. on my system this driver has capability for such files:
Have you tried to install the Microsoft Access Database Engine 2010 Redistributable?
My ODBC Data Source Administrator (32-bit) also shows that supposedly has the .xlsx driver on the User DSN tab. The problem is when I click on Add and the drivers available for Excel are only for .xls files, not .xlsx files.
Regarding the https://www.microsoft.com/en-US/download/details.aspx?id=13255 article-
No, I have not tried installing the Microsoft Access Database Engine 2010 Redistributable. Will that help even though I’m working with Excel 2013? Also, I’m not sure how to do the listed install instruction #4 ( If you are an application developer using ODBC to connect to Microsoft Office Excel data, set the Connection String to “Driver=
I’m trying to create an ODBC database to link data between Excel 2013 and Visio Professional 2013.
Do I need to set the Connection String for my purposes? If so, how do I do that?
Источник
Unable to use the Access ODBC, OLEDB or DAO interfaces outside Office Click-to-Run applications
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise. For more information about this change, read this blog post.
Symptoms
When you try to create an ODBC DSN for drivers that are provided by Microsoft Access in the Data Sources ODBC Administrator, the attempt fails. This problem occurs if you’re using a Click-to-Run (C2R) installation of Office. Depending on the version of Office, you may encounter any of the following issues when you try this operation:
The ODBC drivers provided by ACEODBC.DLL are not listed in the Select a driver dialog box.
You receive a «The operating system is not presently configured to run this application» error message.
You receive an «Unable to load odbcji32.dll» error message.
You receive a «The driver of this User DSN does not exist. It can only be removed» error message together with the platform showing N/A.
- Microsoft Access Driver (*.mdb, *.accdb)
- Microsoft Access Text Driver (*.txt, *.csv)
- Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)
Additionally, if you try to define an OLEDB connection from an external application (one that’s running outside of Office) by using the Microsoft.ACE.OLEDB.12.0 or Microsoft.ACE.OLEDB.16.0 OLEDB provider, you encounter a «Provider cannot be found» error when you try to connect to the provider.
Cause
Click-to-Run installations of Office run in an isolated virtual environment on the local operating system. Some applications outside Office may not be aware of where to look for the installation in the isolated environment.
Resolution
Beginning with Microsoft 365 Apps for Enterprise Version 2009, work has been completed to break ACE out of the C2R virtualization bubble so that applications outside of Office are able to locate the ODBC, OLEDB and DAO interfaces provided by the Access Database Engine within the C2R installation.
Use the following table to understand if additional components are necessary to access these intefaces within your environment:
Current Office Installation | Additional components needed | Recommended Additional Installation |
---|---|---|
Microsoft 365 Apps for Enterprise, Office 2016/2019 Consumer Version 2009 or later | No | — |
Microsoft 365 Apps for Enterprise, Office 2016/2019 Consumer Prior to Version 2009 | Yes | Microsoft Access 2013 Runtime |
Office 2016/2019 Pro Plus C2R (Volume License) | Yes | Microsoft Access 2013 Runtime |
Office 2010/2013/2016 MSI | No | — |
No Office installation | Yes | Microsoft 365 Access Runtime |
- The Microsoft Access Database Engine 2016 Redistributable is not provided as a recommended solution for the indicated scenarios as both the Access Database Engine 2016 and M365 Apps use the same major version identifier (16.0) which may introduce unexpected behaviors. Office side-by-side detection will also prevent the installation from proceeding if this scenario is detected.
- The Microsoft Access Database Engine 2010 Redistributable is no longer suggested as a recommended solution because Office 2010 has reached the end of the Microsoft Support Lifecycle.
Additional information for creating ODBC connections
All Click-to-Run instances of Office are unable to create Machine/System datasource names from within an Office application or from the Data Sources ODBC Administrator.
Источник