forked from apache/nifi
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# This is a combination of 8 commits.
# This is the 1st commit message: nifi-toolkit-upgrade - shell scripts and classes to support upgrade and rollback of standalone and clustered nifi. # This is the commit message apache#2: nifi-toolkit-update - Refactored node manager to combine disconnect and delete function using other nodes when needed to submit request. # This is the commit message apache#3: nifi-toolkit-update - Refactored to use FileManagerTool # This is the commit message apache#4: nifi-toolkit-update - additional messaging, ensure any previous upgrade install is cleared before extracting # This is the commit message apache#5: nifi-toolkit-update - copy entire state directory to prevent disconnected "ghost" instances after upgrade # This is the commit message apache#6: nifi-toolkit-update - created bat files for windows support, migrated upgrade coordination to groovy class. you'll thank me later. # This is the commit message apache#7: nifi-toolkit-update - changed obtaining file permissions based on file type during extraction, updates to messaging in node manager, ensured that if server is not available when notification is sent then exception is logged yet upgrade/downgrade proceeds. # This is the commit message apache#8: nifi-toolkit-update - added -m flag to move repositories for install. catch excpeeptions from notification tool to allow to proceed. # This is the commit message apache#9: nifi-toolkit-update - changed version rule directory value, updated how rules are obtained for a given upgrade # This is the commit message apache#10: nifi-toolkit-update - fixes for windows # This is the commit message apache#1: nifi-toolkit-update - fixes for windows and to ensure directory copying works properly # This is the commit message apache#2: nifi-toolkit-update - so many fixes it's exhausting. I stay grinding # This is the commit message apache#3: nifi-toolkit-update - cluster testing changes # This is the commit message apache#4: nifi-toolkit-update - code cleanup, slight refactor to use abstract class # This is the commit message apache#5: nifi-toolkit-update - fix weird groovy package from build # This is the commit message apache#6: nifi-toolkit-update - lots of changes around versions and changes to fix logger # This is the commit message apache#7: nifi-toolkit-update - added supported versions consistently for all tools # This is the commit message apache#8: nifi-toolkit-update - added level support for notifications
- Loading branch information
1 parent
7c19796
commit 088a884
Showing
89 changed files
with
6,909 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
nifi-toolkit/nifi-toolkit-assembly/src/main/resources/bin/config-migration.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@echo off | ||
rem | ||
rem Licensed to the Apache Software Foundation (ASF) under one or more | ||
rem contributor license agreements. See the NOTICE file distributed with | ||
rem this work for additional information regarding copyright ownership. | ||
rem The ASF licenses this file to You under the Apache License, Version 2.0 | ||
rem (the "License"); you may not use this file except in compliance with | ||
rem the License. You may obtain a copy of the License at | ||
rem | ||
rem http://www.apache.org/licenses/LICENSE-2.0 | ||
rem | ||
rem Unless required by applicable law or agreed to in writing, software | ||
rem distributed under the License is distributed on an "AS IS" BASIS, | ||
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
rem See the License for the specific language governing permissions and | ||
rem limitations under the License. | ||
rem | ||
|
||
rem Use JAVA_HOME if it's set; otherwise, just use java | ||
|
||
if "%JAVA_HOME%" == "" goto noJavaHome | ||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome | ||
set JAVA_EXE=%JAVA_HOME%\bin\java.exe | ||
goto startConfig | ||
|
||
:noJavaHome | ||
echo The JAVA_HOME environment variable is not defined correctly. | ||
echo Instead the PATH will be used to find the java executable. | ||
echo. | ||
set JAVA_EXE=java | ||
goto startConfig | ||
|
||
:startConfig | ||
set LIB_DIR=%~dp0..\upgrade;%~dp0..\lib | ||
|
||
SET JAVA_PARAMS=-cp %LIB_DIR%\* -Xms12m -Xmx24m %JAVA_ARGS% org.apache.nifi.toolkit.upgrade.configmigrator.ConfigMigrationTool | ||
|
||
cmd.exe /C ""%JAVA_EXE%" %JAVA_PARAMS% %* "" | ||
|
Oops, something went wrong.