Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

I can not install minifi-3.1.1.0-35.msi on windows 12 R2

I can not install minifi-3.1.1.0-35.msi on windows 12 R2

Explorer

hello,

I try to install minifi on windows but installation failed with an error about powershell module of active directory but all needed feature of active directory has been already installed:

here is the log file of installation

WINPKG: Logging to existing log C:\MiNiFiInstallFiles\MiNiFiSetupTools\minifi.winpkg.install.log
WINPKG: ENV:WINPKG_BIN is C:\MiNiFiInstallFiles\MiNiFiSetupTools\
WINPKG: Setting Environment::CurrentDirectory to C:\Windows\SysWOW64
WINPKG: NIFI_LAYOUT=
WINPKG: User is svccincom
WINPKG: Cluster properties path: 
WINPKG: Current Directory: C:\Windows\SysWOW64
WINPKG: Package: C:\MiNiFiInstallFiles\MiNiFiSetupTools\\..\MiNiFiPackages\MiNiFi-winpkg.zip
WINPKG: Action: install
WINPKG: Action arguments: 
WINPKG: Run-WinpkgAction C:\MiNiFiInstallFiles\MiNiFiSetupTools\\..\MiNiFiPackages\MiNiFi-winpkg.zip C:\MiNiFiInstallFiles\MiNiFiPackages install
WINPKG: UNZIP: source C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg.zip
WINPKG: UNZIP: destination C:\MiNiFiInstallFiles\MiNiFiPackages
WINPKG: UNZIP: unzipRoot C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg
WINPKG: Unzip of C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg.zip to C:\MiNiFiInstallFiles\MiNiFiPackages succeeded
WINPKG: UnzipRoot: C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg
WINPKG: C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg\scripts\install.ps1
MINIFI: INSTALLATION started
MINIFI: Reading MiNiFi layout from C:\Users\svcCINCOM\AppData\Roaming\minifi_install\MiNiFiproperties.txt
MINIFI: Following properties will be exported into the environment
MINIFI: Property                      Value                                                      
MINIFI: --------                      -----                                                       
MINIFI: MINIFI_DIR                    C:\minifi                                                  
MINIFI: JAVA_ARG_3                    -Xms12m                                                    
MINIFI: JAVA_CMD                      java                                                        
MINIFI: JAVA_ARG_2                    -Xmx24m                                                    
MINIFI: MINIFI_USE_LOCAL_USER         False                                                      
MINIFI: Creating user
MINIFI: UserGroup not provided. Using default UserGroup MiNiFiUsers.
MINIFI: Using user-defined password.
MINIFI: Add-ServiceUser username=minifi, userGroup=MiNiFiUsers, useLocalUser=False, description=Apache NiFi MiNiFi
MINIFI: Domain detected
MINIFI FAILURE: The term 'Get-ADuser' is not 
recognized as the name of a cmdlet, function, script file, or operable 
program. Check the spelling of the name, or if a path was included, 
verify that the path is correct and try again.
At C:\MiNiFiInstallFiles\MiNiFiSetupTools\installApi.user.ps1:120 char:25
+                 $user = Get-ADuser -Filter {SamAccountName -eq $username}
+                         ~~~~~~~~~~
WINPKG FAILURE: WARNING: The names of some imported
 commands from the module 'InstallApi'  include unapproved verbs that 
might make them less discoverable. To find the  commands with unapproved
 verbs, run the Import-Module command again
 with the  Verbose parameter. For a list of approved verbs, type 
Get-Verb. MINIFI: INSTALLATION started MINIFI: Reading MiNiFi layout 
from C:\Users\svcCINCOM\AppData\Roaming\minifi_install\MiNiFiproperties.txt  MINIFI: Following properties will be exported
 into the environment MINIFI: Property                      Value                                                        MINIFI: --------                      -----                                                        MINIFI: MINIFI_DIR                   
 C:\minifi                                                    MINIFI: JAVA_ARG_3                    -Xms12m                                                      MINIFI: JAVA_CMD                      java                                                        
 MINIFI: JAVA_ARG_2                    -Xmx24m                                                      MINIFI: MINIFI_USE_LOCAL_USER         False                                                       
 MINIFI: Creating user MINIFI: UserGroup not provided. Using
 default UserGroup MiNiFiUsers. MINIFI: Using user-defined password. 
MINIFI: Add-ServiceUser username=minifi, userGroup=MiNiFiUsers, 
useLocalUser=False, description=Apache NiFi MiNiFi MINIFI: Domain 
detected Write-Log : MINIFI FAILURE: The term 'Get-ADuser'
 is not recognized as the  name of a cmdlet, function, script file, or 
operable program. Check the
spelling of the name, or if a path was included, verify that the path is
correct and try again.
At C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg\scripts\install.ps1:153
 char:5
+     Write-Log $_.Exception.Message "Failure" $_
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
     + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Log
At C:\MiNiFiInstallFiles\MiNiFiSetupTools\winpkg.ps1:131 char:9
+         throw $out
+         ~~~~~~~~~~
WINPKG: rd /s /q C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg
WINPKG FAILURE: C:\MiNiFiInstallFiles\MiNiFiPackages\MiNiFi-winpkg\scripts\install.ps1  failed.
7 REPLIES 7
Highlighted

Re: I can not install minifi-3.1.1.0-35.msi on windows 12 R2

New Contributor

I'm having this issue as well. Does a local admin need to be created for the initial install for the Creds pre-filled in the MSI? Or would making a domain admin account with local privileges be needed?

@Omwati Sharma, Please remove your post as it is not an answer. It is just a link to get hits on a site. Please and thank you.

@Moderators: Can this kind of thing get looked at a little closer to avoid people using click-bait on real issues that Administrators need a little guidance on?

Highlighted

Re: I can not install minifi-3.1.1.0-35.msi on windows 12 R2

Super Guru

I got rid of the clickbait.

I wonder if this is a version issue.

I will have engineering take a look

https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.1.1/bk_minifi-quick-start/content/ch_minifi-qui...

Highlighted

Re: I can not install minifi-3.1.1.0-35.msi on windows 12 R2

Explorer

I am having the same problem.


I want to create a local user for minifi on a Windows server on a domain, so I check the Local User option but it still tries to use Get-ADuser module.


HDF 3.4

Windows Server 2012 R2


Have you been able to solve it?

Highlighted

Re: I can not install minifi-3.1.1.0-35.msi on windows 12 R2

@burakongun 

Did you get past this issue or are you still facing the problem?

Highlighted

Re: I can not install minifi-3.1.1.0-35.msi on windows 12 R2

Explorer

@Wynner I don't remember exactly but I haven't found any solution to that so I decided not to use the .msi installer version of minifi. 

Highlighted

Re: I can not install minifi-3.1.1.0-35.msi on windows 12 R2

@burakongun 

In my experience with the msi file, I've had to do a couple of steps before running it.

First, make sure there are no blanks spaces in the path to JAVA. Something like C:\Java

Second, I created a local user that was used to run MiNiFi. I also gave this user Administrator privileges.

I hope this helps.

Highlighted

Re: I can not install minifi-3.1.1.0-35.msi on windows 12 R2

New Contributor

RSAT services are missing for active directory.

Open the Powershell with admin rights and copy and execute below line.

Will also work for Windows 10 Pro Clients

 

Add-WindowsCapability –online –Name “Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0”

you can check afterwards with the command

 

Get-Module ActiveDirectory

 if its working

Don't have an account?
Coming from Hortonworks? Activate your account here