0

我有 Windows 8.1,我想试试 hadoop_fdw。问题在于加载扩展名:

CREATE EXTENSION hadoop_fdw;

ddssdg

ERROR:  could not load library "D:/PROGRA~2/POSTGR~2/pg95/../pg95/lib/postgresql/hadoop_fdw.dll": unknown error 126
********** Error **********
ERROR: could not load library "D:/PROGRA~2/POSTGR~2/pg95/../pg95/lib/postgresql/hadoop_fdw.dll": unknown error 126
SQL state: XX000

我尝试从位于“D:\Program Files\PostgreSQLBigsql\pg95\share\postgresql\extension”的 SQL 手动创建扩展

CREATE FUNCTION hadoop_fdw_handler()
RETURNS fdw_handler
AS 'D:\Program Files\PostgreSQLBigsql\pg95\lib\postgresql\hadoop_fdw.dll'
LANGUAGE C STRICT;

CREATE FUNCTION hadoop_fdw_validator(text[], oid)
RETURNS void
AS 'D:\Program Files\PostgreSQLBigsql\pg95\lib\postgresql\hadoop_fdw.dll'
LANGUAGE C STRICT;

CREATE FOREIGN DATA WRAPPER hadoop_fdw
  HANDLER hadoop_fdw_handler
  VALIDATOR hadoop_fdw_validator;

我再次收到此错误相同的错误:

ERROR:  could not load library "D:\Program Files\PostgreSQLBigsql\pg95\lib\postgresql\hadoop_fdw.dll": unknown error 126
********** Error **********

ERROR: could not load library "D:\Program Files\PostgreSQLBigsql\pg95\lib\postgresql\hadoop_fdw.dll": unknown error 126
SQL state: XX000

我做错了什么?

编辑 1:所以我发现缺少 DLL。他们是:

API-MS-WIN-CORE-KERNEL32-PRIVATE-L1-1-1.DLL
API-MS-WIN-CORE-PRIVATEPROFILE-L1-1-1.DLL
API-MS-WIN-SERVICE-PRIVATE-L1-1-1.DLL
JVM.DLL

我将它们添加到 C:\Windows\SysWOW64\ 并且扩展仍然不起作用 - 它可能需要重新启动。

4

0 回答 0